Skip to content

Commit d3418f5

Browse files
committed
make sure /etc/nginx/conf.f/crowdsec_openresty.conf is patched to correct location
1 parent 18760d4 commit d3418f5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

rootfs/etc/cont-init.d/99_crowdsec-openresty-bouncer.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ log() {
77
}
88

99
mkdir -p /config/crowdsec/templates/
10-
echo "Deploy Crowdsec Openresty Bouncer manually.."
10+
echo "Deploy Crowdsec Openresty Bouncer.."
11+
sed -i 's|/defaults/crowdsec|/config/crowdsec|' /etc/nginx/conf.d/crowdsec_openresty.conf
12+
1113
if [ -f /config/crowdsec/crowdsec-openresty-bouncer.conf ]; then
1214
echo "Patch crowdsec-openresty-bouncer.conf .."
1315
sed "s/=.*//g" /config/crowdsec/crowdsec-openresty-bouncer.conf > /tmp/crowdsec.conf.raw

0 commit comments

Comments
 (0)