mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +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
|
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):
|
def index(request):
|
||||||
"""Serve configuration page."""
|
"""Serve configuration page."""
|
||||||
status = get_status()
|
status = get_status()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user