From b555f153bed6083ab36bf6c4575e1ab8c867bcbb Mon Sep 17 00:00:00 2001 From: cclohmar Date: Fri, 10 Jul 2026 16:36:49 +0100 Subject: [PATCH] fix: podman-compose down before up -d for clean state --- deploy.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/deploy.sh b/deploy.sh index 0d34577..eaff4d4 100755 --- a/deploy.sh +++ b/deploy.sh @@ -99,9 +99,10 @@ if [ "$GREENFIELD" = true ]; then # Podman network + deploy all 3 containers echo "[5/5] Deploying containers on $NETWORK_NAME..." podman network create "$NETWORK_NAME" 2>/dev/null || true - podman-compose -f "$TARGET_DIR/compose/launcher.yaml" up -d 2>&1 || echo "[WARN] Launcher deploy had issues" - podman-compose -f "$TARGET_DIR/compose/authelia.yaml" up -d 2>&1 || echo "[WARN] Authelia deploy had issues" - podman-compose -f "$TARGET_DIR/compose/caddy.yaml" up -d 2>&1 || echo "[WARN] Caddy deploy had issues" + for COMPOSE in launcher authelia caddy; do + podman-compose -f "$TARGET_DIR/compose/$COMPOSE.yaml" down 2>/dev/null || true + podman-compose -f "$TARGET_DIR/compose/$COMPOSE.yaml" up -d 2>&1 || echo "[WARN] $COMPOSE deploy had issues" + done sleep 3 AUTHELIA_SECRET=$(grep -oP 'session_secret: \K.*' "$TARGET_DIR/config/authelia/configuration.yml" 2>/dev/null || echo "")