mirror of
https://github.com/zokradonh/kopano-docker
synced 2025-06-25 16:56:38 +00:00
commit
237b09b449
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user