From c1334b9a8b9a3ee09ef2cd11bd270a9ce0cffabd Mon Sep 17 00:00:00 2001 From: Laurence Jones Date: Thu, 20 Oct 2022 12:59:39 +0100 Subject: [PATCH] Test if cscli is installed if so run hub update and reload (#1827) --- config/crowdsec.cron.daily | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/crowdsec.cron.daily b/config/crowdsec.cron.daily index b4614c7b8..041cd485b 100644 --- a/config/crowdsec.cron.daily +++ b/config/crowdsec.cron.daily @@ -1,4 +1,5 @@ #!/bin/sh -cscli --error hub update && cscli --error hub upgrade +test -x /usr/bin/cscli || exit 0 +/usr/bin/cscli --error hub update && /usr/bin/cscli --error hub upgrade systemctl reload crowdsec -exit 0 \ No newline at end of file +exit 0