mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-08-26 12:46:08 +00:00
rssbridge: 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:
parent
8b1dfc525b
commit
4f0dd7733b
1
debian/freedombox.maintscript
vendored
1
debian/freedombox.maintscript
vendored
@ -126,3 +126,4 @@ rm_conffile /etc/dpkg/origins/freedombox 23.10~
|
|||||||
rm_conffile /etc/apache2/conf-available/radicale2-freedombox.conf 23.10~
|
rm_conffile /etc/apache2/conf-available/radicale2-freedombox.conf 23.10~
|
||||||
rm_conffile /etc/apache2/conf-available/roundcube-freedombox.conf 23.10~
|
rm_conffile /etc/apache2/conf-available/roundcube-freedombox.conf 23.10~
|
||||||
rm_conffile /etc/fail2ban/jail.d/roundcube-auth-freedombox.conf 23.10~
|
rm_conffile /etc/fail2ban/jail.d/roundcube-auth-freedombox.conf 23.10~
|
||||||
|
rm_conffile /etc/apache2/conf-available/rss-bridge.conf 23.10~
|
||||||
|
|||||||
@ -7,6 +7,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 cfg, frontpage, menu
|
from plinth import cfg, frontpage, menu
|
||||||
|
from plinth.config import DropinConfigs
|
||||||
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
|
||||||
from plinth.modules.firewall.components import Firewall
|
from plinth.modules.firewall.components import Firewall
|
||||||
@ -36,7 +37,7 @@ class RSSBridgeApp(app_module.App):
|
|||||||
|
|
||||||
app_id = 'rssbridge'
|
app_id = 'rssbridge'
|
||||||
|
|
||||||
_version = 1
|
_version = 2
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
"""Create components for the app."""
|
"""Create components for the app."""
|
||||||
@ -67,6 +68,11 @@ class RSSBridgeApp(app_module.App):
|
|||||||
packages = Packages('packages-rssbridge', ['rss-bridge'])
|
packages = Packages('packages-rssbridge', ['rss-bridge'])
|
||||||
self.add(packages)
|
self.add(packages)
|
||||||
|
|
||||||
|
dropin_configs = DropinConfigs('dropin-configs-rssbridge', [
|
||||||
|
'/etc/apache2/conf-available/rss-bridge.conf',
|
||||||
|
])
|
||||||
|
self.add(dropin_configs)
|
||||||
|
|
||||||
firewall = Firewall('firewall-rssbridge', info.name,
|
firewall = Firewall('firewall-rssbridge', info.name,
|
||||||
ports=['http', 'https'], is_external=True)
|
ports=['http', 'https'], is_external=True)
|
||||||
self.add(firewall)
|
self.add(firewall)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user