users: Use service action to restart share group service

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
James Valleroy 2019-12-15 18:35:38 -05:00
parent 6bf6740b23
commit 83ca977dd4
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -162,4 +162,4 @@ def add_user_to_share_group(username, service=None):
actions.superuser_run(
'users', ['add-user-to-group', username, 'freedombox-share'])
if service:
action_utils.service_restart(service)
actions.superuser_run('service', ['restart', service])