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"