Test if cscli is installed if so run hub update and reload (#1827)
This commit is contained in:
parent
03c9216026
commit
c1334b9a8b
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
exit 0
|
||||
|
|
Loading…
Reference in a new issue