Skip to content

Commit fcab238

Browse files
committed
Make sure we check only for the filename, this approach doesn't need basename.
1 parent 9797f7b commit fcab238

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ sed -i 's|/defaults/crowdsec|/config/crowdsec|' /config/crowdsec/crowdsec-openre
2929
echo "Deploy Templates .."
3030

3131
#Make sure we only copy files that don't exist in config.
32-
for file in /defaults/crowdsec/templates/*
32+
cd /defaults/crowdsec/templates/
33+
for file in *.html
3334
do
3435
if [ ! -e "/config/crowdsec/templates/${file}" ]
3536
then

0 commit comments

Comments
 (0)