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 <sunil@medhas.org>
This commit is contained in:
Sunil Mohan Adapa 2019-01-27 00:15:44 -08:00
parent af018e3018
commit 1d42081c62
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -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(_):