mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
minidlna: Use drop-in config component for /etc files
Tests: - Config files are all symlinks in /etc/ - /_minidlna/ works and shows a 404 generated by miniDLNA Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
cd512bd24c
commit
df7e2e313f
1
debian/freedombox.maintscript
vendored
1
debian/freedombox.maintscript
vendored
@ -119,3 +119,4 @@ rm_conffile /etc/fail2ban/jail.d/matrix-auth-freedombox.conf 23.10~
|
||||
rm_conffile /etc/fail2ban/filter.d/matrix-auth-freedombox.conf 23.10~
|
||||
rm_conffile /etc/apache2/conf-available/mediawiki-freedombox.conf 23.10~
|
||||
rm_conffile /etc/mediawiki/FreedomBoxStaticSettings.php 23.10~
|
||||
rm_conffile /etc/apache2/conf-available/minidlna-freedombox.conf 23.10~
|
||||
|
||||
@ -154,7 +154,6 @@ def get_config():
|
||||
create_permission = _get_config_value(
|
||||
"$wgGroupPermissions['*']['createaccount']")
|
||||
read_permission = _get_config_value("$wgGroupPermissions['*']['read']")
|
||||
print('=====', create_permission, read_permission)
|
||||
return {
|
||||
'default_skin': _get_config_value('$wgDefaultSkin'),
|
||||
'domain': urlparse(server_url).netloc,
|
||||
|
||||
@ -6,6 +6,7 @@ from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from plinth import app as app_module
|
||||
from plinth import frontpage, menu
|
||||
from plinth.config import DropinConfigs
|
||||
from plinth.daemon import Daemon
|
||||
from plinth.modules import firewall
|
||||
from plinth.modules.apache.components import Webserver
|
||||
@ -34,7 +35,7 @@ class MiniDLNAApp(app_module.App):
|
||||
|
||||
app_id = 'minidlna'
|
||||
|
||||
_version = 4
|
||||
_version = 5
|
||||
|
||||
def __init__(self):
|
||||
"""Initialize the app components."""
|
||||
@ -71,6 +72,11 @@ class MiniDLNAApp(app_module.App):
|
||||
packages = Packages('packages-minidlna', ['minidlna'])
|
||||
self.add(packages)
|
||||
|
||||
dropin_configs = DropinConfigs(
|
||||
'dropin-configs-minidlna',
|
||||
['/etc/apache2/conf-available/minidlna-freedombox.conf'])
|
||||
self.add(dropin_configs)
|
||||
|
||||
firewall = Firewall('firewall-minidlna', info.name, ports=['minidlna'],
|
||||
is_external=False)
|
||||
self.add(firewall)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user