diff --git a/security/crowdsec/Makefile b/security/crowdsec/Makefile index 1d6d54f333..1c436a4f17 100644 --- a/security/crowdsec/Makefile +++ b/security/crowdsec/Makefile @@ -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" diff --git a/security/crowdsec/src/opnsense/scripts/OPNsense/CrowdSec/hub-upgrade.sh b/security/crowdsec/src/opnsense/scripts/OPNsense/CrowdSec/hub-upgrade.sh index 2b6d7731b4..7200381975 100755 --- a/security/crowdsec/src/opnsense/scripts/OPNsense/CrowdSec/hub-upgrade.sh +++ b/security/crowdsec/src/opnsense/scripts/OPNsense/CrowdSec/hub-upgrade.sh @@ -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