From ac446d10d43e908e75061e2b1b31b4dc0c74dc92 Mon Sep 17 00:00:00 2001 From: Markus Zolliker Date: Wed, 6 May 2026 10:26:00 +0200 Subject: [PATCH] make parent of firewall config when it does not exists it is the .config directory --- utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/utils.py b/utils.py index 0540e0f..33c45b0 100644 --- a/utils.py +++ b/utils.py @@ -314,6 +314,7 @@ def change_firewall(router_ports, main_ports, execute=None): else: main_ports.add(22) # always add ssh if execute: + FIREWALL_MAIN.parent.mkdir(parents=True, exist_ok=True) with open(FIREWALL_MAIN, 'w') as fil: fil.write(' '.join(str(p) for p in sorted(main_ports))) fil.write('\n')