mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
calibre: Use drop-in config component for /etc files
Tests: - Config files are all symlinks in /etc/ - calibre web interface is available Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
1060d733a7
commit
98be58eb41
1
debian/freedombox.maintscript
vendored
1
debian/freedombox.maintscript
vendored
@ -91,6 +91,7 @@ rm_conffile /etc/apache2/conf-available/php-fpm-freedombox.conf 23.10~
|
||||
rm_conffile /etc/fail2ban/jail.d/apache-auth-freedombox.conf 23.10~
|
||||
rm_conffile /etc/apache2/conf-available/bepasty-freedombox.conf 23.10~
|
||||
rm_conffile /etc/uwsgi/apps-available/bepasty-freedombox.ini 23.10~
|
||||
rm_conffile /etc/apache2/conf-available/calibre-freedombox.conf 23.10~
|
||||
rm_conffile /etc/apache2/conf-available/deluge-plinth.conf 23.10~
|
||||
rm_conffile /etc/dovecot/conf.d/15-freedombox-mail.conf 23.10~
|
||||
rm_conffile /etc/dovecot/conf.d/05-freedombox-passdb.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 cfg, frontpage, menu
|
||||
from plinth.config import DropinConfigs
|
||||
from plinth.daemon import Daemon
|
||||
from plinth.modules.apache.components import Webserver
|
||||
from plinth.modules.backups.components import BackupRestore
|
||||
@ -41,7 +42,7 @@ class CalibreApp(app_module.App):
|
||||
|
||||
app_id = 'calibre'
|
||||
|
||||
_version = 2
|
||||
_version = 3
|
||||
|
||||
DAEMON = 'calibre-server-freedombox'
|
||||
|
||||
@ -75,6 +76,11 @@ class CalibreApp(app_module.App):
|
||||
packages = Packages('packages-calibre', ['calibre'])
|
||||
self.add(packages)
|
||||
|
||||
dropin_configs = DropinConfigs('dropin-configs-calibre', [
|
||||
'/etc/apache2/conf-available/calibre-freedombox.conf',
|
||||
])
|
||||
self.add(dropin_configs)
|
||||
|
||||
firewall = Firewall('firewall-calibre', info.name,
|
||||
ports=['http', 'https'], is_external=True)
|
||||
self.add(firewall)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user