mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
unified env variables for ecm/bpm hosts (#1465)
This commit is contained in:
parent
7b0ce29000
commit
ea0cfaa99c
@ -59,10 +59,21 @@ 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 [[ $ACS_URL ]]; then
|
if [[ -n "${APP_CONFIG_BPM_HOST}" ]]
|
||||||
|
then
|
||||||
replace="\/"
|
replace="\/"
|
||||||
encoded=${ACS_URL//\//$replace}
|
encoded=${APP_CONFIG_BPM_HOST//\//$replace}
|
||||||
sed -i s%{protocol}//{hostname}{:port}%"$encoded"%g /tmp/app.config.json && \
|
sed -e "s/\"bpmHost\": \".*\"/\"bpmHost\": \"${encoded}\"/g" \
|
||||||
|
-i /tmp/app.config.json && \
|
||||||
|
cat /tmp/app.config.json > ./app.config.json
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -n "${APP_CONFIG_ECM_HOST}" ]]
|
||||||
|
then
|
||||||
|
replace="\/"
|
||||||
|
encoded=${APP_CONFIG_ECM_HOST//\//$replace}
|
||||||
|
sed -e "s/\"ecmHost\": \".*\"/\"ecmHost\": \"${encoded}\"/g" \
|
||||||
|
-i /tmp/app.config.json && \
|
||||||
cat /tmp/app.config.json > ./app.config.json
|
cat /tmp/app.config.json > ./app.config.json
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user