From 0bdb1f7f27a0c07095a4ce93998f89050ba54f05 Mon Sep 17 00:00:00 2001 From: mmetc <92726601+mmetc@users.noreply.github.com> Date: Thu, 27 Feb 2025 11:19:43 +0100 Subject: [PATCH] cron: avoid spamming stdout when the hub index is updated (#3485) --- config/crowdsec.cron.daily | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/crowdsec.cron.daily b/config/crowdsec.cron.daily index 9c488d298..6b419a8b4 100644 --- a/config/crowdsec.cron.daily +++ b/config/crowdsec.cron.daily @@ -5,7 +5,7 @@ test -x /usr/bin/cscli || exit 0 # splay hub upgrade and crowdsec reload sleep "$(seq 1 300 | shuf -n 1)" -/usr/bin/cscli --error hub update +/usr/bin/cscli --error hub update >/dev/null upgraded=$(/usr/bin/cscli --error hub upgrade) if [ -n "$upgraded" ]; then