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"