diff --git a/deploy.sh b/deploy.sh index 50095a8..1b27212 100755 --- a/deploy.sh +++ b/deploy.sh @@ -39,6 +39,9 @@ if [ "$GREENFIELD" = true ]; then systemctl disable nextworkspace 2>/dev/null || true rm -f /etc/systemd/system/nextworkspace.service systemctl daemon-reload + # Kill any lingering Caddy processes on port 80/443 + pkill -f "caddy run" 2>/dev/null || true + fuser -k 80/tcp 443/tcp 2>/dev/null || true # Force clean ALL old pods, containers, and networks for p in $(podman pod ls -q 2>/dev/null); do podman pod rm -f "$p" 2>/dev/null || true; done podman rm -f caddy authelia launcher 2>/dev/null || true @@ -63,7 +66,7 @@ if [ "$GREENFIELD" = true ]; then if [ -f "$BACKUP_DIR/.env" ]; then cp "$BACKUP_DIR/.env" "$TARGET_DIR/.env" - chmod 600 "$TARGET_DIR/.env" + chmod 644 "$TARGET_DIR/.env" fi # Generate Caddyfile