File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -11,11 +11,11 @@ echo "Deploy Crowdsec Openresty Bouncer manually.."
11
11
if [ -f /config/crowdsec/crowdsec-openresty-bouncer.conf ]; then
12
12
echo " Patch crowdsec-openresty-bouncer.conf .."
13
13
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
17
17
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
19
19
fi
20
20
else
21
21
echo " Deploy new crowdsec-openresty-bouncer.conf .."
You can’t perform that action at this time.
0 commit comments