From a8b10a18142e7eada190bb2d8788b43456f96ffc Mon Sep 17 00:00:00 2001 From: Justin Oros Date: Sun, 19 Apr 2026 22:36:46 -0700 Subject: [PATCH] health-check.sh: check hub user's crontab instead of root's when running as root --- health-check.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/health-check.sh b/health-check.sh index 0af2abe..3e1cfb6 100755 --- a/health-check.sh +++ b/health-check.sh @@ -190,7 +190,7 @@ check_hub() { fail "rclone remote [${spoke_name}-remote] not found in rclone.conf" fi - if crontab -l 2>/dev/null | grep -q "${spoke_name}-remote:"; then + if crontab -u "$(basename "$HUB_HOME")" -l 2>/dev/null | grep -q "${spoke_name}-remote:"; then ok "Auto-mount crontab entry present" else warn "No auto-mount crontab entry for $spoke_name"