disable about and settings by default (#1868)

* disable about and settings by default

* support docker variables

* remove comments
This commit is contained in:
Denys Vuika
2020-12-09 12:30:53 +00:00
committed by GitHub
parent 42463179b5
commit 0ed0a10471
5 changed files with 21 additions and 30 deletions

View File

@@ -0,0 +1,15 @@
#!/bin/sh
set -e
echo Running sed on "${NGINX_ENVSUBST_OUTPUT_DIR}/assets/app.extensions.json"
# modifies the "$ignoreReferenceList" property using a comma-delimited string
if [ -n "${APP_EXTENSIONS_IGNORE_REFS}" ]; then
echo "replace APP_EXTENSIONS_IGNORE_REFS"
replace="\/"
encoded=${APP_EXTENSIONS_IGNORE_REFS//\//$replace}
sed -e "s/\"$ignoreReferenceList\": \".*\"/\"$ignoreReferenceList\": \[${encoded}\]/g" \
-i "${NGINX_ENVSUBST_OUTPUT_DIR}/app.extensions.json"
fi