mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-06-03 10:50:20 +00:00
firewall: Allow upgrade from any version to 1.2.*
Closes: #2253 Tests: - Build a package with this fix included for bullseye-backports distribution. - Install into FreedomBox stable system. - Start dist-upgrade test. - At the end of the test, wait for plinth to attempt upgrades, and then confirm that firewalld was upgraded. - Confirm that firewalld is running. - Confirm that /etc/firewalld/firewalld.conf has DefaultZone=external. Signed-off-by: James Valleroy <jvalleroy@mailbox.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
4920e33160
commit
4395484ff4
@ -86,11 +86,9 @@ class FirewallApp(app_module.App):
|
||||
if 'firewalld' not in packages:
|
||||
return False
|
||||
|
||||
# firewalld 0.6.x -> 0.7.x, 0.6.x -> 0.8.x, 0.7.x -> 0.8.x, 0.9.x ->
|
||||
# 1.0.x
|
||||
# Allow upgrade from any version to 1.2.*
|
||||
package = packages['firewalld']
|
||||
if Version(package['current_version']) >= Version('1.0') or \
|
||||
Version(package['new_version']) < Version('0.7'):
|
||||
if Version(package['new_version']) > Version('1.3~'):
|
||||
return False
|
||||
|
||||
install(['firewalld'], force_configuration='new')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user