mirror of
https://github.com/opnsense/plugins.git
synced 2026-05-25 19:15:07 -04:00
add some detection for opnsense
This commit is contained in:
parent
58f0dfd86e
commit
ec260dfbb6
2 changed files with 6 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue