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

* Fix typo in sed command

* Another typo fix
This commit is contained in:
Sergiu Vidrascu 2018-09-24 12:12:18 +03:00 committed by Denys Vuika
parent 3e7a3ddd8d
commit 912dab64f3

View File

@ -4,7 +4,7 @@ if [[ $ACSURL ]]; then
sed -i s%{protocol}//{hostname}{:port}%"$ACSURL"%g /usr/share/nginx/html/app.config.json sed -i s%{protocol}//{hostname}{:port}%"$ACSURL"%g /usr/share/nginx/html/app.config.json
fi fi
if [[ $BASEPATH ]]; then 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 fi
nginx -g "daemon off;" nginx -g "daemon off;"