mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-27 10:44:33 +00:00
Add group for Deluge
Signed-off-by: Rahul De <rahul080327@gmail.com> Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
This commit is contained in:
parent
a22a01a76f
commit
382e2be7f9
@ -26,9 +26,10 @@ from plinth import action_utils
|
|||||||
from plinth import frontpage
|
from plinth import frontpage
|
||||||
from plinth import service as service_module
|
from plinth import service as service_module
|
||||||
from plinth.menu import main_menu
|
from plinth.menu import main_menu
|
||||||
|
from plinth.modules.users import add_group
|
||||||
|
|
||||||
|
|
||||||
version = 1
|
version = 2
|
||||||
|
|
||||||
service = None
|
service = None
|
||||||
|
|
||||||
@ -51,6 +52,7 @@ description = [
|
|||||||
|
|
||||||
reserved_usernames = ['debian-deluged']
|
reserved_usernames = ['debian-deluged']
|
||||||
|
|
||||||
|
|
||||||
def init():
|
def init():
|
||||||
"""Initialize the Deluge module."""
|
"""Initialize the Deluge module."""
|
||||||
menu = main_menu.get('apps')
|
menu = main_menu.get('apps')
|
||||||
@ -80,6 +82,7 @@ def setup(helper, old_version=None):
|
|||||||
disable=disable)
|
disable=disable)
|
||||||
helper.call('post', service.notify_enabled, None, True)
|
helper.call('post', service.notify_enabled, None, True)
|
||||||
helper.call('post', add_shortcut)
|
helper.call('post', add_shortcut)
|
||||||
|
add_group("bittorrent")
|
||||||
|
|
||||||
|
|
||||||
def add_shortcut():
|
def add_shortcut():
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user