File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
docker/rootfs/etc/services.d/crowdsec_openresty_bouncer Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
set -e # Exit immediately if a command exits with a non-zero status.
4
4
5
- mkdir -p /data/crowdsec
5
+ mkdir -p /data/crowdsec/templates
6
6
if [ -f /data/crowdsec/crowdsec-openresty-bouncer.conf ]; then
7
7
echo "Patch crowdsec-openresty-bouncer.conf .."
8
8
sed "s/=.*//g" /data/crowdsec/crowdsec-openresty-bouncer.conf > /tmp/crowdsec.conf.raw
16
16
echo "Deploy new crowdsec-openresty-bouncer.conf .."
17
17
cp /defaults/crowdsec/crowdsec-openresty-bouncer.conf /data/crowdsec/crowdsec-openresty-bouncer.conf
18
18
fi
19
+ #Make sure the config location is where we get the config from instead of /default/
20
+ sed -i 's|/defaults/crowdsec|/data/crowdsec|' /data/crowdsec/crowdsec-openresty-bouncer.conf
19
21
echo "Deploy Templates .."
20
- sed -i 's|/defaults/crowdsec/templates|/data/crowdsec/templates|' /data/crowdsec/crowdsec-openresty-bouncer.conf
21
22
cp -r /defaults/crowdsec/templates/* /data/crowdsec/templates/
You can’t perform that action at this time.
0 commit comments