[ACA-2800] Entry.sh overrides wrong BASE_PATH (#1240)

* ACA-2800 href should be override href="/" and href="./" as that is our prod build. As well ADW uses ACS_URL

* ACA-2800 href should be override href="/" and href="./" as that is our prod build
This commit is contained in:
Martin Muller 2019-10-31 20:34:31 +01:00 committed by Cilibiu Bogdan
parent 9e208ed573
commit 1147e0765c

View File

@ -59,9 +59,9 @@ if [ -n "${APP_CONFIG_OAUTH2_REDIRECT_LOGOUT}" ];then
cat /tmp/app.config.json > ./app.config.json
fi
if [[ $ACSURL ]]; then
if [[ $ACS_URL ]]; then
replace="\/"
encoded=${ACSURL//\//$replace}
encoded=${ACS_URL//\//$replace}
sed -i s%{protocol}//{hostname}{:port}%"$encoded"%g /tmp/app.config.json && \
cat /tmp/app.config.json > ./app.config.json
fi
@ -69,7 +69,7 @@ fi
if [[ $BASE_PATH ]]; then
replace="\/"
encoded=${BASE_PATH//\//$replace}
sed -i s%href=\"/\"%href=\""$encoded"\"%g /tmp/index.html && \
sed -ri 's%href=".?/"%href="'$encoded'"%g' /tmp/index.html && \
cat /tmp/index.html > ./index.html
fi