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