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:
Sunil Mohan Adapa authored and James Valleroy committed 2019-08-10 09:38:56 -04:00
1 parent 0cf099fe4f
commit 639fd71d88
1 file changed
+2 -2
+2 -2
View File
@@ -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')