Lines 91-97
crowdsec_precmd() {
Link Here
|
91 |
# If the hub is empty, install the freebsd collection and the private ip whitelist. |
91 |
# If the hub is empty, install the freebsd collection and the private ip whitelist. |
92 |
# We don't ship the whitelist in the collection because |
92 |
# We don't ship the whitelist in the collection because |
93 |
# there are legitimate use cases for banning private ip ranges. |
93 |
# there are legitimate use cases for banning private ip ranges. |
94 |
if [ "$(cscli hub list -o raw | wc -l)" -le 1 ]; then |
94 |
if [ "$(cs_cli hub list -o raw | wc -l)" -le 1 ]; then |
95 |
cs_cli parsers install crowdsecurity/whitelists --error || : |
95 |
cs_cli parsers install crowdsecurity/whitelists --error || : |
96 |
cs_cli collections install crowdsecurity/freebsd --error || : |
96 |
cs_cli collections install crowdsecurity/freebsd --error || : |
97 |
fi |
97 |
fi |
98 |
- |
|
|