fix: update.sh meldet klar, wenn der systemd-Dienst fehlt (statt kryptischem systemctl-Fehler)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Guido
2026-08-19 19:25:19 +02:00
co-authored by Claude Opus 4.8
parent 8ed4bf5254
commit f53c79a20c
+6
View File
@@ -86,6 +86,12 @@ else
fi fi
# --- Neu starten (wendet Migrationen an) ------------------------------------ # --- Neu starten (wendet Migrationen an) ------------------------------------
if ! systemctl cat "$APP_SLUG" >/dev/null 2>&1; then
error "Der systemd-Dienst '$APP_SLUG' existiert noch nicht."
echo " Bitte einmalig die Ersteinrichtung ausführen:"
echo " sudo $REPO_DIR/deploy/install.sh"
exit 1
fi
info "Starte Dienst neu …" info "Starte Dienst neu …"
systemctl restart "$APP_SLUG" systemctl restart "$APP_SLUG"