fix #653 - fixing issue caused by missing \ in docker entrypoint (#655)

* fix #653 : add basepath modification at runtime trough env vars

* Fix typo in sed command
This commit is contained in:
Sergiu Vidrascu 2018-09-21 20:08:38 +03:00 committed by Denys Vuika
parent 3c6ec05e26
commit 776b2e9e18

View File

@ -4,7 +4,7 @@ if [[ $ACSURL ]]; then
sed -i s%{protocol}//{hostname}{:port}%"$ACSURL"%g /usr/share/nginx/html/app.config.json
fi
if [[ $BASEPATH ]]; then
sed -i s%href=\"./"%href=\""$BASEPATH"\"%g /usr/share/nginx/html/index.html
sed -i s%href=\"./\"%href=\""$BASEPATH"\"%g /usr/share/nginx/html/index.html
fi
nginx -g "daemon off;"