Skip to content

Commit bc6f13c

Browse files
committed
make sure /etc/nginx/conf.f/crowdsec_openresty.conf is patched to correct location
1 parent 2117ba8 commit bc6f13c

File tree

1 file changed

+3
-0
lines changed
  • docker/rootfs/etc/services.d/crowdsec_openresty_bouncer

1 file changed

+3
-0
lines changed

docker/rootfs/etc/services.d/crowdsec_openresty_bouncer/run

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
set -e # Exit immediately if a command exits with a non-zero status.
44

55
mkdir -p /data/crowdsec/templates
6+
echo "Deploy Crowdsec Openresty Bouncer.."
7+
sed -i 's|/defaults/crowdsec|/data/crowdsec|' /etc/nginx/conf.d/crowdsec_openresty.conf
8+
69
if [ -f /data/crowdsec/crowdsec-openresty-bouncer.conf ]; then
710
echo "Patch crowdsec-openresty-bouncer.conf .."
811
sed "s/=.*//g" /data/crowdsec/crowdsec-openresty-bouncer.conf > /tmp/crowdsec.conf.raw

0 commit comments

Comments
 (0)