mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
[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:
parent
9e208ed573
commit
1147e0765c
@ -59,9 +59,9 @@ if [ -n "${APP_CONFIG_OAUTH2_REDIRECT_LOGOUT}" ];then
|
|||||||
cat /tmp/app.config.json > ./app.config.json
|
cat /tmp/app.config.json > ./app.config.json
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $ACSURL ]]; then
|
if [[ $ACS_URL ]]; then
|
||||||
replace="\/"
|
replace="\/"
|
||||||
encoded=${ACSURL//\//$replace}
|
encoded=${ACS_URL//\//$replace}
|
||||||
sed -i s%{protocol}//{hostname}{:port}%"$encoded"%g /tmp/app.config.json && \
|
sed -i s%{protocol}//{hostname}{:port}%"$encoded"%g /tmp/app.config.json && \
|
||||||
cat /tmp/app.config.json > ./app.config.json
|
cat /tmp/app.config.json > ./app.config.json
|
||||||
fi
|
fi
|
||||||
@ -69,7 +69,7 @@ fi
|
|||||||
if [[ $BASE_PATH ]]; then
|
if [[ $BASE_PATH ]]; then
|
||||||
replace="\/"
|
replace="\/"
|
||||||
encoded=${BASE_PATH//\//$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
|
cat /tmp/index.html > ./index.html
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user