From 1a76e7bef053f69880f8882d59364b81fca24536 Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Sun, 1 Dec 2019 11:13:14 -0500 Subject: [PATCH] samba: Use register_group instead of create_group Signed-off-by: James Valleroy --- plinth/modules/samba/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plinth/modules/samba/__init__.py b/plinth/modules/samba/__init__.py index 9e5948512..3497d6f3a 100644 --- a/plinth/modules/samba/__init__.py +++ b/plinth/modules/samba/__init__.py @@ -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)