mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
samba: Use register_group instead of create_group
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
5de8350e0b
commit
1a76e7bef0
@ -28,7 +28,7 @@ from plinth import action_utils, actions
|
||||
from plinth import app as app_module
|
||||
from plinth import frontpage, menu
|
||||
from plinth.daemon import Daemon
|
||||
from plinth.modules.users import create_group
|
||||
from plinth.modules.users import register_group
|
||||
from plinth.modules.firewall.components import Firewall
|
||||
from plinth.utils import format_lazy
|
||||
|
||||
@ -94,6 +94,7 @@ def init():
|
||||
"""Initialize the module."""
|
||||
global app
|
||||
app = SambaApp()
|
||||
register_group(group)
|
||||
|
||||
setup_helper = globals()['setup_helper']
|
||||
if setup_helper.get_state() != 'needs-setup' and app.is_enabled():
|
||||
@ -103,7 +104,6 @@ def init():
|
||||
def setup(helper, old_version=None):
|
||||
"""Install and configure the module."""
|
||||
helper.install(managed_packages)
|
||||
create_group('freedombox-share')
|
||||
helper.call('post', actions.superuser_run, 'samba', ['setup'])
|
||||
helper.call('post', app.enable)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user