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}" <