mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
users: Use service action to restart share group service
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 file changed
+1
-1
@@ -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])
|
||||
Reference in new issue
Block a user