Skip to content

Commit

Permalink
[ACS-8815] Support for toggling Knowledge Retrieval in docker image (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jacekpluta authored Sep 23, 2024
1 parent d9c8ba7 commit 3d25eb7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docker/docker-entrypoint.d/30-sed-on-appconfig.sh
Original file line number Diff line number Diff line change
Expand Up @@ -155,3 +155,8 @@ if [ -n "${APP_CONFIG_PLUGIN_CATEGORIES}" ]; then
echo "SET APP_CONFIG_PLUGIN_CATEGORIES"
sed -e "s/\"categoriesEnabled\": [^,]*/\"categoriesEnabled\": ${APP_CONFIG_PLUGIN_CATEGORIES}/g" -i "$APP_CONFIG_FILE"
fi

if [ -n "${APP_CONFIG_PLUGIN_KNOWLEDGE_RETRIEVAL}" ]; then
echo "SET APP_CONFIG_PLUGIN_KNOWLEDGE_RETRIEVAL"
sed -e "s/\"knowledgeRetrievalEnabled\": [^,]*/\"knowledgeRetrievalEnabled\": ${APP_CONFIG_PLUGIN_KNOWLEDGE_RETRIEVAL}/g" -i "$APP_CONFIG_FILE"
fi

0 comments on commit 3d25eb7

Please sign in to comment.