Add group for Deluge

Signed-off-by: Rahul De <rahul080327@gmail.com>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
This commit is contained in:
Rahul De 2017-09-28 10:25:01 +05:30 committed by Joseph Nuthalpati
parent a22a01a76f
commit 382e2be7f9
No known key found for this signature in database
GPG Key ID: 5398F00A2FA43C35

View File

@ -26,9 +26,10 @@ from plinth import action_utils
from plinth import frontpage
from plinth import service as service_module
from plinth.menu import main_menu
from plinth.modules.users import add_group
version = 1
version = 2
service = None
@ -51,6 +52,7 @@ description = [
reserved_usernames = ['debian-deluged']
def init():
"""Initialize the Deluge module."""
menu = main_menu.get('apps')
@ -80,6 +82,7 @@ def setup(helper, old_version=None):
disable=disable)
helper.call('post', service.notify_enabled, None, True)
helper.call('post', add_shortcut)
add_group("bittorrent")
def add_shortcut():