mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-07-22 11:59:33 +00:00
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:
parent
31cfb8f643
commit
56b3c854e4
1
debian/freedombox.maintscript
vendored
1
debian/freedombox.maintscript
vendored
@ -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~
|
||||
|
||||
@ -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)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user