mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-06-03 10:50:20 +00:00
deluge: Use drop-in config comonents for /etc files
Tests: - Could not test as the app is not installable. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
13db2c2372
commit
99b23b75a4
1
debian/freedombox.maintscript
vendored
1
debian/freedombox.maintscript
vendored
@ -87,6 +87,7 @@ rm_conffile /etc/plinth/modules-enabled/users 23.10~
|
||||
rm_conffile /etc/plinth/modules-enabled/wireguard 23.10~
|
||||
rm_conffile /etc/plinth/modules-enabled/wordpress 23.10~
|
||||
rm_conffile /etc/plinth/modules-enabled/zoph 23.10~
|
||||
rm_conffile /etc/apache2/conf-available/deluge-plinth.conf 23.10~
|
||||
rm_conffile /etc/gitweb-freedombox.conf 23.10~
|
||||
rm_conffile /etc/apache2/conf-available/gitweb-freedombox.conf 23.10~
|
||||
rm_conffile /etc/apache2/conf-available/gitweb-freedombox-auth.conf 23.10~
|
||||
|
||||
@ -5,6 +5,7 @@ from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from plinth import app as app_module
|
||||
from plinth import frontpage, menu
|
||||
from plinth.config import DropinConfigs
|
||||
from plinth.daemon import Daemon
|
||||
from plinth.modules.apache.components import Webserver
|
||||
from plinth.modules.backups.components import BackupRestore
|
||||
@ -30,7 +31,7 @@ class DelugeApp(app_module.App):
|
||||
|
||||
app_id = 'deluge'
|
||||
|
||||
_version = 7
|
||||
_version = 8
|
||||
|
||||
def __init__(self):
|
||||
"""Create components for the app."""
|
||||
@ -65,6 +66,11 @@ class DelugeApp(app_module.App):
|
||||
packages = Packages('packages-deluge', ['deluged', 'deluge-web'])
|
||||
self.add(packages)
|
||||
|
||||
dropin_configs = DropinConfigs(
|
||||
'dropin-configs-deluge',
|
||||
['/etc/apache2/conf-available/deluge-plinth.conf'])
|
||||
self.add(dropin_configs)
|
||||
|
||||
firewall = Firewall('firewall-deluge', info.name,
|
||||
ports=['http', 'https'], is_external=True)
|
||||
self.add(firewall)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user