Skip to content

Commit 18760d4

Browse files
committed
Fixed more bad file names.
1 parent 123473c commit 18760d4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ echo "Deploy Crowdsec Openresty Bouncer manually.."
1111
if [ -f /config/crowdsec/crowdsec-openresty-bouncer.conf ]; then
1212
echo "Patch crowdsec-openresty-bouncer.conf .."
1313
sed "s/=.*//g" /config/crowdsec/crowdsec-openresty-bouncer.conf > /tmp/crowdsec.conf.raw
14-
sed "s/=.*//g" /defaults/crowdsec/config_example.conf > /tmp/config_example.conf.raw
15-
if grep -vf /tmp/crowdsec.conf.raw /tmp/config_example.conf.raw ; then
16-
grep -vf /tmp/crowdsec.conf.raw /tmp/config_example.conf.raw > /tmp/config_example.newvals
14+
sed "s/=.*//g" /defaults/crowdsec/crowdsec-openresty-bouncer.conf > /tmp/config_new.conf.raw
15+
if grep -vf /tmp/crowdsec.conf.raw /tmp/config_new.conf.raw ; then
16+
grep -vf /tmp/crowdsec.conf.raw /tmp/config_new.conf.raw > /tmp/config_new.newvals
1717
cp /config/crowdsec/crowdsec-openresty-bouncer.conf /config/crowdsec/crowdsec-openresty-bouncer.conf.bak
18-
grep -f /tmp/config_example.newvals /defaults/crowdsec/crowdsec-openresty-bouncer.conf >> /config/crowdsec/crowdsec-openresty-bouncer.conf
18+
grep -f /tmp/config_new.newvals /defaults/crowdsec/crowdsec-openresty-bouncer.conf >> /config/crowdsec/crowdsec-openresty-bouncer.conf
1919
fi
2020
else
2121
echo "Deploy new crowdsec-openresty-bouncer.conf .."

0 commit comments

Comments
 (0)