fix: sed replacement of SENTRY_DSN (#2036)
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
In log: `vikunja-frontend-1 | sed: -e expression #1, char 46: unknown option to `s'` We need to escape the VIKUNJA_SENTRY_DSN content or change sed separator to character that will not be used in sentry DNS string which I did in this commit. Signed-off-by: k2s <martin.minka@gmail.com> Co-authored-by: k2s <martin.minka@gmail.com> Reviewed-on: #2036 Reviewed-by: konrad <k@knt.li> Co-authored-by: k2s <k2s@noreply.kolaente.de> Co-committed-by: k2s <k2s@noreply.kolaente.de>
This commit is contained in:
parent
831693d895
commit
d308d665bd
2
run.sh
2
run.sh
@ -16,7 +16,7 @@ VIKUNJA_API_URL=$(echo $VIKUNJA_API_URL |sed 's/\//\\\//g')
|
||||
sed -i "s/http\:\/\/localhost\:3456//g" /usr/share/nginx/html/index.html # replacing in two steps to make sure api urls from releases are properly replaced as well
|
||||
sed -i "s/'\/api\/v1/'$VIKUNJA_API_URL/g" /usr/share/nginx/html/index.html
|
||||
sed -i "s/\.SENTRY_ENABLED = false/\.SENTRY_ENABLED = $VIKUNJA_SENTRY_ENABLED/g" /usr/share/nginx/html/index.html
|
||||
sed -i "s/\.SENTRY_DSN = '.*'/\.SENTRY_DSN = '$VIKUNJA_SENTRY_DSN'/g" /usr/share/nginx/html/index.html
|
||||
sed -i "s|\.SENTRY_DSN = '.*'|\.SENTRY_DSN = '$VIKUNJA_SENTRY_DSN'|g" /usr/share/nginx/html/index.html
|
||||
|
||||
sed -i "s/listen 80/listen $VIKUNJA_HTTP_PORT/g" /etc/nginx/nginx.conf
|
||||
sed -i "s/listen 443/listen $VIKUNJA_HTTPS_PORT/g" /etc/nginx/nginx.conf
|
||||
|
Reference in New Issue
Block a user