radicale: Use drop-in config component for /etc files

Tests:

- Config files are all symlinks in /etc/
- Web interface works.

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 12:03:59 -07:00 committed by James Valleroy
parent 8533a287a6
commit 23f7497c05
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
3 changed files with 8 additions and 1 deletions

View File

@ -123,3 +123,4 @@ rm_conffile /etc/apache2/conf-available/minidlna-freedombox.conf 23.10~
rm_conffile /etc/NetworkManager/dispatcher.d/10-freedombox-batman 23.10~
rm_conffile /etc/pagekite.d/90_freedombox_certs.rc 23.10~
rm_conffile /etc/dpkg/origins/freedombox 23.10~
rm_conffile /etc/apache2/conf-available/radicale2-freedombox.conf 23.10~

View File

@ -10,6 +10,7 @@ from django.utils.translation import gettext_lazy as _
from plinth import app as app_module
from plinth import cfg, frontpage, menu
from plinth.config import DropinConfigs
from plinth.modules.apache.components import Uwsgi, Webserver
from plinth.modules.backups.components import BackupRestore
from plinth.modules.firewall.components import Firewall
@ -42,7 +43,7 @@ class RadicaleApp(app_module.App):
app_id = 'radicale'
_version = 2
_version = 3
def __init__(self):
"""Create components for the app."""
@ -71,6 +72,11 @@ class RadicaleApp(app_module.App):
packages = Packages('packages-radicale', ['radicale'])
self.add(packages)
dropin_configs = DropinConfigs('dropin-configs-radicale', [
'/etc/apache2/conf-available/radicale2-freedombox.conf',
])
self.add(dropin_configs)
firewall = Firewall('firewall-radicale', info.name,
ports=['http', 'https'], is_external=True)
self.add(firewall)