mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-09-09 18:02:54 +00:00
Allow setting KD URL from Docker (#5295)
* Allow setting KD URL from Docker * CR fix
This commit is contained in:
@@ -139,6 +139,17 @@ if [ -n "${APP_BASE_SHARE_URL}" ]; then
|
||||
-i "$APP_CONFIG_FILE"
|
||||
fi
|
||||
|
||||
if [ -n "${APP_CONFIG_KNOWLEDGE_DISCOVERY_URL}" ]; then
|
||||
echo "SET APP_CONFIG_KNOWLEDGE_DISCOVERY_URL"
|
||||
|
||||
encoded=${APP_CONFIG_KNOWLEDGE_DISCOVERY_URL}
|
||||
encoded=${encoded//\\/\\\\}
|
||||
encoded=${encoded//&/\\&}
|
||||
encoded=${encoded//\//\\/}
|
||||
sed -e "s/\"knowledgeDiscoveryUrl\": \".*\"/\"knowledgeDiscoveryUrl\": \"${encoded}\"/g" \
|
||||
-i "$APP_CONFIG_FILE"
|
||||
fi
|
||||
|
||||
if [ -n "${APP_CONFIG_PLUGIN_TAGS}" ]; then
|
||||
echo "SET APP_CONFIG_PLUGIN_TAGS"
|
||||
sed -e "s/\"tagsEnabled\": [^,]*/\"tagsEnabled\": ${APP_CONFIG_PLUGIN_TAGS}/g" -i "$APP_CONFIG_FILE"
|
||||
|
||||
Reference in New Issue
Block a user