Rename custom files for Traefik rules (allow deletion on script run without conflict with generated rules)
This commit is contained in:
parent
d1e2bfa212
commit
18caa638bd
|
@ -5,7 +5,9 @@
|
||||||
**/traefik/http_auth
|
**/traefik/http_auth
|
||||||
backup/
|
backup/
|
||||||
services.conf
|
services.conf
|
||||||
|
|
||||||
traefik/custom/dynamic*.yaml
|
traefik/custom/dynamic*.yaml
|
||||||
|
traefik/custom/custom-*.yaml
|
||||||
samples/custom*/*.yaml
|
samples/custom*/*.yaml
|
||||||
|
|
||||||
config.yaml
|
config.yaml
|
||||||
|
|
|
@ -120,10 +120,10 @@ if [[ $(cat config.json | jq '[.services[] | select(.name=="flood" and .enabled=
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Apply other arbitrary custom Traefik config files
|
# Apply other arbitrary custom Traefik config files
|
||||||
# rm -f $f traefik/custom/dynamic-*
|
rm -f $f traefik/custom/custom-*
|
||||||
for f in `find samples/custom-traefik -maxdepth 1 -mindepth 1 -type f | grep -E "\.yml$|\.yaml$" | sort`; do
|
for f in `find samples/custom-traefik -maxdepth 1 -mindepth 1 -type f | grep -E "\.yml$|\.yaml$" | sort`; do
|
||||||
echo "[$0] Applying custom Traefik config $f..."
|
echo "[$0] Applying custom Traefik config $f..."
|
||||||
cp $f traefik/custom/dynamic-$(basename $f)
|
cp $f traefik/custom/custom-$(basename $f)
|
||||||
done
|
done
|
||||||
|
|
||||||
# Detect Synology devices for Netdata compatibility
|
# Detect Synology devices for Netdata compatibility
|
||||||
|
|
Loading…
Reference in New Issue