1
0
mirror of https://github.com/zokradonh/kopano-docker synced 2025-06-25 16:56:38 +00:00

Meet quoting again (#230)

some values need explicit quoting
This commit is contained in:
Felix Bartels 2019-08-29 17:15:37 +02:00 committed by GitHub
commit 237b09b449
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,14 @@ echo "Updating $CONFIG_JSON"
for setting in $(compgen -A variable KCCONF_MEET); do for setting in $(compgen -A variable KCCONF_MEET); do
setting2=${setting#KCCONF_MEET_} setting2=${setting#KCCONF_MEET_}
# dots in setting2 need to be escaped to not be handled as separate entities in the json file # dots in setting2 need to be escaped to not be handled as separate entities in the json file
jq ".\"${setting2//_/\".\"}\" = ${!setting}" $CONFIG_JSON | sponge $CONFIG_JSON case ${!setting} in
true|TRUE|false|FALSE)
jq ".\"${setting2//_/\".\"}\" = ${!setting}" $CONFIG_JSON | sponge $CONFIG_JSON
;;
*)
jq ".\"${setting2//_/\".\"}\" = \"${!setting}\"" $CONFIG_JSON | sponge $CONFIG_JSON
;;
esac
done done
# enable Kopano WebApp in the app switcher # enable Kopano WebApp in the app switcher