Test if cscli is installed if so run hub update and reload (#1827)

This commit is contained in:
Laurence Jones 2022-10-20 12:59:39 +01:00 committed by GitHub
parent 03c9216026
commit c1334b9a8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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