mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
16 lines
487 B
Bash
Executable File
16 lines
487 B
Bash
Executable File
#!/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
|