mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-02-04 08:13:38 +00:00
firewalld: Allow upgrade to version 2*
Tests: - After a dist-upgrade to Bookworm, install freedombox with this change. Then update apt cache. After a delay, firewalld is upgraded. Then apps can be installed as normal. - On a stable machine, add testing into apt sources list. Run apt update. FreedomBox will receive the apt update hook and upgrade firewall version to 1.3.x. DefaultZone is set to 'external' after that. Signed-off-by: James Valleroy <jvalleroy@mailbox.org> [sunil: Update all the way up to 2.0] Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
25d32d245a
commit
9597654ca8
@ -85,9 +85,9 @@ class FirewallApp(app_module.App):
|
||||
if 'firewalld' not in packages:
|
||||
return False
|
||||
|
||||
# Allow upgrade from any version to 1.2.*
|
||||
# Allow upgrade from any version to any version below 2.0
|
||||
package = packages['firewalld']
|
||||
if Version(package['new_version']) > Version('1.3~'):
|
||||
if Version(package['new_version']) > Version('2~'):
|
||||
return False
|
||||
|
||||
install(['firewalld'], force_configuration='new')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user