diff --git a/run.sh b/run.sh index 58596264b..8df9f261e 100755 --- a/run.sh +++ b/run.sh @@ -9,7 +9,8 @@ fi # Escape the variable to prevent sed from complaining VIKUNJA_API_URL=$(echo $VIKUNJA_API_URL |sed 's/\//\\\//g') -sed -i "s/http\:\/\/localhost\:3456\/api\/v1/$VIKUNJA_API_URL/g" /usr/share/nginx/html/index.html +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 # Set the uid and gid of the nginx run user usermod --non-unique --uid ${PUID} nginx