[ACA-2470] base path encoding for entry point

This commit is contained in:
Denys Vuika 2019-06-20 15:34:28 +01:00
parent 6e894fc196
commit 9975261ed9

View File

@ -67,7 +67,9 @@ if [[ $ACSURL ]]; then
fi
if [[ $BASEPATH ]]; then
sed -i s%href=\"/\"%href=\""$BASEPATH"\"%g /tmp/index.html && \
replace="\/"
encoded=${BASEPATH//\//$replace}
sed -i s%href=\"/\"%href=\""$encoded"\"%g /tmp/index.html && \
cat /tmp/index.html > ./index.html
fi