fix: smart update stops and removes old containers before redeploy
This commit is contained in:
parent
cd4c48b2f5
commit
960ee5bc7c
1 changed files with 3 additions and 1 deletions
|
|
@ -119,7 +119,9 @@ if [ "$GREENFIELD" = true ]; then
|
|||
# --- Smart update ---
|
||||
else
|
||||
echo "[3/5] Redeploying containers..."
|
||||
podman-compose -f "$TARGET_DIR/compose/stack.yaml" up -d 2>&1 || true
|
||||
podman stop caddy authelia launcher 2>/dev/null || true
|
||||
podman rm caddy authelia launcher 2>/dev/null || true
|
||||
podman-compose -f "$TARGET_DIR/compose/stack.yaml" up -d 2>&1 || echo "[WARN] Stack deploy had issues"
|
||||
fi
|
||||
|
||||
# --- Health check ---
|
||||
|
|
|
|||
Loading…
Reference in a new issue