Skip to content

Commit be2f05d

Browse files
committed
make sure we check only for the file name.
1 parent 7c56bde commit be2f05d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ fi
2323
sed -i 's|/defaults/crowdsec|/data/crowdsec|' /data/crowdsec/crowdsec-openresty-bouncer.conf
2424
echo "Deploy Templates .."
2525
#Make sure we only copy files that don't exist in /data/crowdsec.
26-
for file in /defaults/crowdsec/templates/*
26+
cd /defaults/crowdsec/templates/
27+
for file in *.html
2728
do
2829
if [ ! -e "/data/crowdsec/templates/${file}" ]
2930
then

0 commit comments

Comments
 (0)