samba: Use register_group instead of create_group

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
James Valleroy 2019-12-01 11:13:14 -05:00
parent 5de8350e0b
commit 1a76e7bef0
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -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)