From f53c79a20c7340137cbd66a5465c85a66cb790af Mon Sep 17 00:00:00 2001 From: Guido Date: Wed, 19 Aug 2026 19:25:19 +0200 Subject: [PATCH] fix: update.sh meldet klar, wenn der systemd-Dienst fehlt (statt kryptischem systemctl-Fehler) Co-Authored-By: Claude Opus 4.8 --- deploy/update.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/deploy/update.sh b/deploy/update.sh index 75340ac..224645c 100755 --- a/deploy/update.sh +++ b/deploy/update.sh @@ -86,6 +86,12 @@ else fi # --- 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 …" systemctl restart "$APP_SLUG"