users: Use service action to restart share group service

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
James Valleroy committed 2019-12-15 19:08:18 -05:00
1 parent 6bf6740b23
commit 83ca977dd4
1 file changed
+1 -1
+1 -1
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])