mirror of
https://github.com/jc21/nginx-proxy-manager.git
synced 2024-08-30 18:22:48 +00:00
Don't try copy templates if we are using environment variables for the configuration.
This commit is contained in:
parent
3a22a0c09c
commit
e1698a903c
@ -39,13 +39,16 @@ else
|
||||
sed -i 's|/defaults/crowdsec|/data/crowdsec|' /data/crowdsec/crowdsec-openresty-bouncer.conf
|
||||
fi
|
||||
|
||||
echo "Deploy Crowdsec Templates .."
|
||||
|
||||
#Make sure we only copy files that don't exist in /data/crowdsec.
|
||||
cd /defaults/crowdsec/templates/
|
||||
for file in *.html
|
||||
do
|
||||
if [ ! -e "/data/crowdsec/templates/${file}" ]
|
||||
then
|
||||
cp -r "/defaults/crowdsec/templates/${file}" "/data/crowdsec/templates/"
|
||||
fi
|
||||
done
|
||||
if [ -d "/data/crowdsec/templates" ]; then
|
||||
echo "Deploy Crowdsec Templates .."
|
||||
cd /defaults/crowdsec/templates/
|
||||
for file in *.html
|
||||
do
|
||||
if [ ! -e "/data/crowdsec/templates/${file}" ]
|
||||
then
|
||||
cp -r "/defaults/crowdsec/templates/${file}" "/data/crowdsec/templates/"
|
||||
fi
|
||||
done
|
||||
fi
|
Loading…
Reference in New Issue
Block a user