From f49b92074e71e7e56811512eeb7675c9ee1e0ce1 Mon Sep 17 00:00:00 2001 From: boban Date: Sun, 26 Apr 2026 18:41:23 +0200 Subject: [PATCH] Fix: ensure_system installiert mailwolt-ws (Reverb) als systemd-Service Co-Authored-By: Claude Sonnet 4.6 --- scripts/update.sh | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/scripts/update.sh b/scripts/update.sh index 7db39c7..b7e1e99 100644 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -177,6 +177,38 @@ ensure_system(){ chmod 644 "${cron_file}" echo "[✓] Laravel Scheduler cron installiert." fi + + # Reverb WebSocket Service + local ws_service="/etc/systemd/system/mailwolt-ws.service" + if [[ ! -f "${ws_service}" ]]; then + local php_bin + php_bin=$(command -v php || echo "/usr/bin/php") + cat > "${ws_service}" <