mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-07-29 12:09:37 +00:00
minidlna: Restart app when upgrading to reconfigure firewall
Tested when minidlna app is running - after upgrade the ssdp port is open. Signed-off-by: Veiko Aasa <veiko17@disroot.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
681f2ef994
commit
8670a56610
@ -101,6 +101,11 @@ class MiniDLNAApp(app_module.App):
|
||||
users_privileged.remove_group('minidlna')
|
||||
apache_privileged.disable('minidlna-freedombox', 'config')
|
||||
|
||||
# Restart app to reload firewall
|
||||
if self.is_enabled():
|
||||
self.disable()
|
||||
self.enable()
|
||||
|
||||
if not old_version:
|
||||
self.enable()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user