crowdsec/config/crowdsec.cron.daily

15 lines
263 B
Text
Raw Normal View History

#!/bin/sh
test -x /usr/bin/cscli || exit 0
/usr/bin/cscli --error hub update
upgraded=$(/usr/bin/cscli --error hub upgrade)
if [ -n "$upgraded" ]; then
2022-11-04 13:54:03 +00:00
# splay initial metrics push
sleep $(seq 1 90 | shuf -n 1)
systemctl reload crowdsec
fi
exit 0