committing changes in /etc made by "-bash"
Package changes:
This commit is contained in:
14
cron.daily/crowdsec
Executable file
14
cron.daily/crowdsec
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user