From 1d42081c62d63cc9d249507c63a0a9ed2d71d80c Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Sun, 27 Jan 2019 00:15:44 -0800 Subject: [PATCH] radicale: Fix issue with configuration changes not applying With newer version of radicale (>2.1), when configuration is changed, it is not applied until the application is disabled and re-enabled. Also make sure that configuration changes don't start a daemon when it is disabled. Signed-off-by: Sunil Mohan Adapa --- actions/radicale | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/actions/radicale b/actions/radicale index a73c87f1d..09487d802 100755 --- a/actions/radicale +++ b/actions/radicale @@ -89,7 +89,10 @@ def subcommand_configure(arguments): aug.set('/files' + CONFIG_FILE + '/rights/type', arguments.rights_type) aug.save() - action_utils.service_restart('radicale') + if current_version and current_version >= radicale.VERSION_2: + action_utils.service_try_restart('uwsgi') + else: + action_utils.service_try_restart('radicale') def subcommand_enable(_):