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:
Sunil Mohan Adapa 2023-05-16 11:24:48 -07:00 committed by James Valleroy
parent 13db2c2372
commit 99b23b75a4
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
3 changed files with 8 additions and 1 deletions

View File

@ -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/wireguard 23.10~
rm_conffile /etc/plinth/modules-enabled/wordpress 23.10~ rm_conffile /etc/plinth/modules-enabled/wordpress 23.10~
rm_conffile /etc/plinth/modules-enabled/zoph 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/gitweb-freedombox.conf 23.10~
rm_conffile /etc/apache2/conf-available/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~ rm_conffile /etc/apache2/conf-available/gitweb-freedombox-auth.conf 23.10~

View File

@ -5,6 +5,7 @@ from django.utils.translation import gettext_lazy as _
from plinth import app as app_module from plinth import app as app_module
from plinth import frontpage, menu from plinth import frontpage, menu
from plinth.config import DropinConfigs
from plinth.daemon import Daemon from plinth.daemon import Daemon
from plinth.modules.apache.components import Webserver from plinth.modules.apache.components import Webserver
from plinth.modules.backups.components import BackupRestore from plinth.modules.backups.components import BackupRestore
@ -30,7 +31,7 @@ class DelugeApp(app_module.App):
app_id = 'deluge' app_id = 'deluge'
_version = 7 _version = 8
def __init__(self): def __init__(self):
"""Create components for the app.""" """Create components for the app."""
@ -65,6 +66,11 @@ class DelugeApp(app_module.App):
packages = Packages('packages-deluge', ['deluged', 'deluge-web']) packages = Packages('packages-deluge', ['deluged', 'deluge-web'])
self.add(packages) 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, firewall = Firewall('firewall-deluge', info.name,
ports=['http', 'https'], is_external=True) ports=['http', 'https'], is_external=True)
self.add(firewall) self.add(firewall)