github.com/crowdsecurity/crowdsec@v1.6.1/config/crowdsec.cron.daily (about) 1 #!/bin/sh 2 3 test -x /usr/bin/cscli || exit 0 4 5 # splay hub upgrade and crowdsec reload 6 sleep "$(seq 1 300 | shuf -n 1)" 7 8 /usr/bin/cscli --error hub update 9 10 upgraded=$(/usr/bin/cscli --error hub upgrade) 11 if [ -n "$upgraded" ]; then 12 systemctl reload crowdsec 13 fi 14 15 exit 0