mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-29 10:10:19 +00:00
firewall: Force upgrade to firewalld 0.7.x
Closes: #1608 Allow upgrade to any version of 0.7.x series. Use new configuration and apply the two default configuration changes of FreedomBox. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
0cf099fe4f
commit
639fd71d88
@ -83,8 +83,8 @@ def force_upgrade(helper, packages):
|
|||||||
|
|
||||||
# firewalld 0.4.4.6-2 -> 0.6.x
|
# firewalld 0.4.4.6-2 -> 0.6.x
|
||||||
package = packages['firewalld']
|
package = packages['firewalld']
|
||||||
if Version(package['current_version']) >= Version('0.6') or \
|
if Version(package['current_version']) >= Version('0.7') or \
|
||||||
Version(package['new_version']) < Version('0.6'):
|
Version(package['new_version']) < Version('0.7'):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
helper.install(['firewalld'], force_configuration='new')
|
helper.install(['firewalld'], force_configuration='new')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user