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