mirror of
https://github.com/zokradonh/kopano-docker
synced 2025-07-22 17:35:31 +00:00
match incl closing tags to prevent confusing PLUGIN_MDM_SERVER_SSL with PLUGIN_MDM_SERVER (#449)
Fixes https://github.com/zokradonh/kopano-docker/issues/446 Signed-off-by: Felix Bartels <felix@host-consultants.de>
This commit is contained in:
parent
0dd0f49866
commit
2bc513f4fc
@ -48,6 +48,7 @@ services:
|
|||||||
#- ADDITIONAL_KOPANO_WEBAPP_PLUGINS=kopano-webapp-plugin-mdm
|
#- ADDITIONAL_KOPANO_WEBAPP_PLUGINS=kopano-webapp-plugin-mdm
|
||||||
- KCCONF_WEBAPPPLUGIN_MDM_PLUGIN_MDM_USER_DEFAULT_ENABLE_MDM=true
|
- KCCONF_WEBAPPPLUGIN_MDM_PLUGIN_MDM_USER_DEFAULT_ENABLE_MDM=true
|
||||||
- KCCONF_WEBAPPPLUGIN_MDM_PLUGIN_MDM_SERVER=kopano_zpush:9080
|
- KCCONF_WEBAPPPLUGIN_MDM_PLUGIN_MDM_SERVER=kopano_zpush:9080
|
||||||
|
- KCCONF_WEBAPPPLUGIN_MDM_PLUGIN_MDM_SERVER_SSL=false
|
||||||
networks:
|
networks:
|
||||||
- web-net
|
- web-net
|
||||||
|
|
||||||
|
@ -13,12 +13,12 @@ php_cfg_gen() {
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
case $cfg_value in
|
case $cfg_value in
|
||||||
# TODO stop after the first match
|
# TODO stop after the first match (currently matching incl. closing quote)
|
||||||
true|TRUE|false|FALSE)
|
true|TRUE|false|FALSE)
|
||||||
sed -ri "s#(\s*define).+${cfg_setting}.+#\tdefine(\x27${cfg_setting}\x27, ${cfg_value}\);#g" "$cfg_file"
|
sed -ri "s#(\s*define).+${cfg_setting}\x27.+#\tdefine(\x27${cfg_setting}\x27, ${cfg_value}\);#g" "$cfg_file"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
sed -ri "s#(\s*define).+${cfg_setting}.+#\tdefine(\x27${cfg_setting}\x27, \x27${cfg_value}\x27\);#g" "$cfg_file"
|
sed -ri "s#(\s*define).+${cfg_setting}\x27.+#\tdefine(\x27${cfg_setting}\x27, \x27${cfg_value}\x27\);#g" "$cfg_file"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user