deluge: Run setup and enable after install.

This commit is contained in:
James Valleroy authored and Sunil Mohan Adapa committed 2015-06-26 17:34:38 +05:30
1 parent 9c717246ee
commit fd73bcd734
2 files changed
+17 -3

No files matched your search

+6 -1
View File
@@ -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()