mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
appsv2: fix reload_only_if_change option not working as expected, resulting in incorrect 'Firewall reloaded' messages
This commit is contained in:
parent
888593ad22
commit
d725b45428
1 changed files with 2 additions and 2 deletions
|
@ -101,7 +101,7 @@ def firewall_allow(
|
|||
|
||||
# Update and reload firewall
|
||||
_update_firewall_file(firewall)
|
||||
if not no_reload or (reload_only_if_change and changed):
|
||||
if (not reload_only_if_change and not no_reload) or (reload_only_if_change and changed):
|
||||
return firewall_reload()
|
||||
|
||||
|
||||
|
@ -180,7 +180,7 @@ def firewall_disallow(
|
|||
|
||||
# Update and reload firewall
|
||||
_update_firewall_file(firewall)
|
||||
if not no_reload or (reload_only_if_change and changed):
|
||||
if (not reload_only_if_change and not no_reload) or (reload_only_if_change and changed):
|
||||
return firewall_reload()
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue