mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
[ACA-2470] encode urls for docker entrypoint
This commit is contained in:
parent
900d002a08
commit
6e894fc196
@ -60,7 +60,9 @@ if [ -n "${APP_CONFIG_OAUTH2_REDIRECT_LOGOUT}" ];then
|
||||
fi
|
||||
|
||||
if [[ $ACSURL ]]; then
|
||||
sed -i s%{protocol}//{hostname}{:port}%"$ACSURL"%g /tmp/app.config.json && \
|
||||
replace="\/"
|
||||
encoded=${ACSURL//\//$replace}
|
||||
sed -i s%{protocol}//{hostname}{:port}%"$encoded"%g /tmp/app.config.json && \
|
||||
cat /tmp/app.config.json > ./app.config.json
|
||||
fi
|
||||
|
||||
@ -70,7 +72,9 @@ if [[ $BASEPATH ]]; then
|
||||
fi
|
||||
|
||||
if [ -n "${APP_BASE_SHARE_URL}" ];then
|
||||
sed -e "s/\"baseShareUrl\": \".*\"/\"baseShareUrl\": \"${APP_BASE_SHARE_URL}\"/g" \
|
||||
replace="\/"
|
||||
encoded=${APP_BASE_SHARE_URL//\//$replace}
|
||||
sed -e "s/\"baseShareUrl\": \".*\"/\"baseShareUrl\": \"${encoded}\"/g" \
|
||||
-i /tmp/app.config.json && \
|
||||
cat /tmp/app.config.json > ./app.config.json
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user