mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
deluge: Minor fixes and styling
- Updated comments - Start the daemon before enabling Apache configuration. - Warn the user about editing the Apache configuration for Deluge. - Other minor updates.
This commit is contained in:
1 parent
6a57dc78f3
commit
a6fa7abbad
5 files changed
+17
-11
No files matched your search
+9
-3
@@ -18,7 +18,7 @@
|
||||
#
|
||||
|
||||
"""
|
||||
Configuration helper for BitTorrent web client
|
||||
Configuration helper for BitTorrent web client.
|
||||
"""
|
||||
|
||||
import argparse
|
||||
@@ -30,6 +30,12 @@ SITE_CONF = '/etc/apache2/conf-available/deluge-web.conf'
|
||||
SITE_ENABLED = '/etc/apache2/conf-enabled/deluge-web.conf'
|
||||
|
||||
APACHE_CONF = '''
|
||||
##
|
||||
## On all sites, provide Deluge on a default path: /deluge
|
||||
##
|
||||
## This file is managed and overwritten by Plinth. If you wish to edit
|
||||
## it, disable Deluge in Plinth, remove this file and manage it manually.
|
||||
##
|
||||
<Location /deluge>
|
||||
ProxyPass http://localhost:8112
|
||||
</Location>
|
||||
@@ -77,11 +83,11 @@ def subcommand_enable(_):
|
||||
if not os.path.isfile(SITE_CONF):
|
||||
setup()
|
||||
|
||||
subcommand_start(_)
|
||||
|
||||
subprocess.check_call(['a2enconf', 'deluge-web'])
|
||||
subprocess.check_call(['service', 'apache2', 'reload'])
|
||||
|
||||
subcommand_start(_)
|
||||
|
||||
|
||||
def subcommand_disable(_):
|
||||
"""Disable deluge-web site and stop deluge-web."""
|
||||
|
||||
Reference in new issue
Block a user