File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 6
6
echo " [cont-init.d] $( basename $0 ) : $* "
7
7
}
8
8
9
- mkdir -p /config/crowdsec
9
+ mkdir -p /config/crowdsec/templates/
10
10
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 .."
21
21
echo " Deploy new crowdsec-openresty-bouncer.conf .."
22
22
cp /defaults/crowdsec/config_example.conf /config/crowdsec/crowdsec-openresty-bouncer.conf
23
23
fi
24
+ # Make sure the config location is where we get the config from instead of /default/
25
+ sed -i ' s|/defaults/crowdsec|/config/crowdsec|' /config/crowdsec/crowdsec-openresty-bouncer.conf
24
26
echo " Deploy Templates .."
25
- sed -i ' s|/defaults/crowdsec/templates|/config/crowdsec/templates|' /config/crowdsec/crowdsec-openresty-bouncer.conf
26
27
cp -r /defaults/crowdsec/templates/* /config/crowdsec/templates/
You can’t perform that action at this time.
0 commit comments