mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-06-10 11:00:22 +00:00
Start deluge-web service after package install
This commit is contained in:
parent
bff8dd5a5c
commit
b1c11b5cc7
@ -29,7 +29,13 @@ from plinth import package
|
||||
from plinth.modules import deluge
|
||||
|
||||
|
||||
@package.required(['deluged', 'deluge-web'])
|
||||
def on_install():
|
||||
"""Tasks to run after package install."""
|
||||
actions.superuser_run('deluge', ['enable'])
|
||||
deluge.service.notify_enabled(None, True)
|
||||
|
||||
|
||||
@package.required(['deluged', 'deluge-web'], on_install=on_install)
|
||||
def index(request):
|
||||
"""Serve configuration page."""
|
||||
status = get_status()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user