Lines 59-71
crowdsec_precmd() {
Link Here
|
59 |
cs_cli capi register || : |
59 |
cs_cli capi register || : |
60 |
fi |
60 |
fi |
61 |
|
61 |
|
62 |
cs_cli collections inspect crowdsecurity/linux >/dev/null || cs_cli collections install crowdsecurity/linux || : |
62 |
cs_cli collections inspect crowdsecurity/freebsd | grep ^installed | grep -q true || \ |
63 |
|
63 |
cs_cli collections install crowdsecurity/freebsd || : |
64 |
DATA_DIR=$(Config ConfigPaths.DataDir) |
|
|
65 |
if [ ! -f "${DATA_DIR}/GeoLite2-City.mmdb" ]; then |
66 |
echo "Installing GeoIP enricher" |
67 |
cs_cli parsers install crowdsecurity/geoip-enrich || : |
68 |
fi |
69 |
} |
64 |
} |
70 |
|
65 |
|
71 |
crowdsec_start() |
66 |
crowdsec_start() |