mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-02-11 08:23:49 +00:00
users: Use service action to restart share group service
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
6bf6740b23
commit
83ca977dd4
@ -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])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user