File setup-crowdsec-firewall-bouncer of Package crowdsec-firewall-bouncer
#!/usr/bin/sh # License: MIT #register the bouncer if that's not already done grep \${API_KEY} /etc/crowdsec/bouncers/crowdsec-firewall-bouncer.yaml > /dev/null if [ $? == 0 ] ; then sed -i "s|api_key: \${API_KEY}|api_key: $(/usr/bin/cscli -oraw bouncer add 'crowdsec-firewall-bouncer')|g" /etc/crowdsec/bouncers/crowdsec-firewall-bouncer.yaml fi