Fix app.config.json expansion (#1826)

This commit is contained in:
Marcello Teodori
2020-11-27 03:07:45 +01:00
committed by GitHub
parent e88141ccdf
commit c2a802fe3e
4 changed files with 16 additions and 9 deletions
@@ -93,10 +93,9 @@ fi
# application specific ce replacements
if [ -n "${APP_BASE_SHARE_URL}" ];then
if [ -n "${APP_BASE_SHARE_URL}" ]; then
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
-i "${NGINX_ENVSUBST_OUTPUT_DIR}/app.config.json"
fi