mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
deluge: Run setup and enable after install.
This commit is contained in:
1 parent
9c717246ee
commit
fd73bcd734
2 files changed
+17
-3
No files matched your search
@@ -29,8 +29,13 @@ from plinth import actions
|
||||
from plinth import package
|
||||
|
||||
|
||||
def on_install():
|
||||
"""Setup deluge-web on install."""
|
||||
actions.superuser_run('deluge', ['setup'])
|
||||
|
||||
|
||||
@login_required
|
||||
@package.required(['deluged', 'deluge-web'])
|
||||
@package.required(['deluged', 'deluge-web'], on_install=on_install)
|
||||
def index(request):
|
||||
"""Serve configuration page."""
|
||||
status = get_status()
|
||||
|
||||
Reference in new issue
Block a user