mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-02-25 08:43:36 +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
|
||||
package = packages['firewalld']
|
||||
if Version(package['current_version']) >= Version('0.6') or \
|
||||
Version(package['new_version']) < Version('0.6'):
|
||||
if Version(package['current_version']) >= Version('0.7') or \
|
||||
Version(package['new_version']) < Version('0.7'):
|
||||
return False
|
||||
|
||||
helper.install(['firewalld'], force_configuration='new')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user