mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 04:15:54 +02:00
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
|
#!/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
|
systemctl reload crowdsec
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue