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

Tests:

- Config files are all symlinks in /etc/
- Sharing folders 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:14:05 -07:00 committed by James Valleroy
parent 31cfb8f643
commit 56b3c854e4
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
3 changed files with 8 additions and 1 deletions

View File

@ -131,3 +131,4 @@ rm_conffile /etc/apache2/conf-available/searx-freedombox-auth.conf 23.10~
rm_conffile /etc/apache2/conf-available/searx-freedombox.conf 23.10~
rm_conffile /etc/fail2ban/fail2ban.d/freedombox.conf 23.10~
rm_conffile /etc/fail2ban/jail.d/freedombox.conf 23.10~
rm_conffile /etc/apache2/includes/freedombox-sharing.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 cfg, menu
from plinth.config import DropinConfigs
from plinth.modules.apache.components import Webserver
from plinth.modules.backups.components import BackupRestore
from plinth.utils import format_lazy
@ -24,7 +25,7 @@ class SharingApp(app_module.App):
app_id = 'sharing'
_version = 2
_version = 3
def __init__(self):
"""Create components for the app."""
@ -39,6 +40,11 @@ class SharingApp(app_module.App):
parent_url_name='apps')
self.add(menu_item)
dropin_configs = DropinConfigs('dropin-configs-sharing', [
'/etc/apache2/includes/freedombox-sharing.conf',
])
self.add(dropin_configs)
webserver = Webserver('webserver-sharing', 'sharing-freedombox')
self.add(webserver)