fix: sed replacement of SENTRY_DSN (#2036)

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: vikunja/frontend#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:
k2s 2022-06-08 18:44:46 +00:00 committed by konrad
parent 831693d895
commit d308d665bd
1 changed files with 1 additions and 1 deletions

2
run.sh
View File

@ -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