From 678430d77df266d9b195fc6d4d61ddd1eadcd4f7 Mon Sep 17 00:00:00 2001 From: Hermes VM Date: Wed, 27 May 2026 12:12:22 +0000 Subject: [PATCH] fix: cron health-check entry should call vm-health-check.sh --notify The 07:00 daily cron was incorrectly pointing to vm-cleanup.sh instead of vm-health-check.sh. Health check is read-only; cleanup is not. Also add --notify so Telegram alerts fire when WARNING/CRITICAL. Co-Authored-By: Claude Sonnet 4.6 --- scripts/VMs/HostingerVM/vm-cleanup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/VMs/HostingerVM/vm-cleanup.sh b/scripts/VMs/HostingerVM/vm-cleanup.sh index 5522b2d..b43eadf 100755 --- a/scripts/VMs/HostingerVM/vm-cleanup.sh +++ b/scripts/VMs/HostingerVM/vm-cleanup.sh @@ -148,7 +148,7 @@ do_install_cron() { $cron_tag — DO NOT EDIT this block manually, use --install-cron / --uninstall-cron # Daily health check at 07:00 UTC (read-only, sends Telegram alert on WARNING/CRITICAL) -0 7 * * * bash $SCRIPT_PATH --quiet 2>&1 | logger -t vm-cleanup +0 7 * * * bash $SCRIPT_DIR/vm-health-check.sh --quiet --notify 2>&1 | logger -t vm-health-check # Daily build cache prune at 03:00 UTC (always safe, never removes images) 0 3 * * * bash $SCRIPT_PATH --quiet 2>&1 | logger -t vm-cleanup # Weekly cleanup (Sunday 02:00 UTC) — logs, apt, npm, .next/cache, build cache