From 0d7defff4e2baa97077380ff3d89e51d399c0f88 Mon Sep 17 00:00:00 2001 From: cclohmar Date: Sat, 11 Jul 2026 10:14:10 +0100 Subject: [PATCH] fix network creation: use -f for rm, show errors on create --- tools/nextwks.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/nextwks.sh b/tools/nextwks.sh index 33ba6c3..1d1217f 100755 --- a/tools/nextwks.sh +++ b/tools/nextwks.sh @@ -210,7 +210,7 @@ if [ "$MODE" = "destroy" ]; then # Stop rootless containers podman stop caddy authelia launcher 2>/dev/null || true podman rm caddy authelia launcher 2>/dev/null || true - podman network rm "$NETWORK_NAME" 2>/dev/null || true + podman network rm -f "$NETWORK_NAME" 2>/dev/null || true # Wipe target maybe_sudo rm -rf "$TARGET_DIR" maybe_sudo mkdir -p "$TARGET_DIR/config/caddy" "$TARGET_DIR/config/authelia" \ @@ -304,8 +304,8 @@ maybe_sudo chown -R "$RUN_USER:" "$BACKUP_DIR" 2>/dev/null || true # ============================================================ echo "[*] Deploying containers on $NETWORK_NAME..." -podman network rm "$NETWORK_NAME" 2>/dev/null || true -podman network create --subnet 172.18.0.0/24 "$NETWORK_NAME" 2>/dev/null || true +podman network rm -f "$NETWORK_NAME" 2>/dev/null || true +podman network create --subnet 172.18.0.0/24 "$NETWORK_NAME" # AUTHELIA_SECRET is SESSION_SECRET (Authelia session.secret) AUTHELIA_SECRET="${SESSION_SECRET:-}"