add some detection for opnsense

This commit is contained in:
sabban 2026-04-17 15:39:23 +02:00
parent 58f0dfd86e
commit ec260dfbb6
2 changed files with 6 additions and 1 deletions

View file

@ -2,7 +2,7 @@ PLUGIN_NAME= crowdsec
PLUGIN_VERSION= 1.0.12
PLUGIN_DEPENDS= crowdsec
PLUGIN_COMMENT= Lightweight and collaborative security engine
PLUGIN_MAINTAINER= marco@crowdsec.net
PLUGIN_MAINTAINER= manuel@crowdsec.net
PLUGIN_WWW= https://crowdsec.net/
.include "../../Mk/plugins.mk"

View file

@ -4,6 +4,11 @@ test -x /usr/local/bin/cscli || exit 0
/usr/local/bin/cscli --error -o human hub update >/dev/null
_setup=$(mktemp /tmp/crowdsec-setup.XXXXXX.yaml)
/usr/local/bin/cscli setup detect --detect-config /usr/local/etc/crowdsec/detect.yaml --outfile "${_setup}"
/usr/local/bin/cscli setup install-hub --file "${_setup}"
rm -f "${_setup}"
upgraded=$(/usr/local/bin/cscli --error -o human hub upgrade)
if [ ! -e "/usr/local/etc/crowdsec/collections/opnsense.yaml" ]; then