mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 20:36:12 +02:00
14 lines
263 B
Bash
14 lines
263 B
Bash
#!/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
|
|
# splay initial metrics push
|
|
sleep $(seq 1 90 | shuf -n 1)
|
|
systemctl reload crowdsec
|
|
fi
|
|
|
|
exit 0
|