alpine-repos/minoplhy-crowdsec/crowdsec.post-install

23 lines
495 B
Plaintext
Raw Permalink Normal View History

#!/bin/sh
[ -s /etc/crowdsec/local_api_credentials.yaml ] || cscli machines add -a --force --error
cat >&2 <<EOF
*
* Recommended command before starting Crowdsec
*
* Force create ent machine(fix not found error):
* cscli machines add -a --force --error
* Force Register capi:
* cscli capi register --error
* Hub update:
* cscli hub update
* Hub upgrade:
* cscli hub upgrade
* Enable share ip from console:
* cscli console enable console_management
*
EOF
exit 0