mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-06-27 10:42:20 -04:00
Use fixed strings for grep patterns
If you set a fancy a swag_url label involving a regex this can trip grep causing it to detect changes *every single run* causing my nginx to just give up now an then when reloading the config :(
This commit is contained in:
@@ -18,7 +18,7 @@ else
|
||||
if [ "${VAR_VALUE}" == "null" ]; then
|
||||
VAR_VALUE=""
|
||||
fi
|
||||
if ! grep -q "${VAR}=\"${VAR_VALUE}\"" "/auto-proxy/${CONTAINER}.conf"; then
|
||||
if ! grep -F -q "${VAR}=\"${VAR_VALUE}\"" "/auto-proxy/${CONTAINER}.conf"; then
|
||||
AUTO_GEN="${CONTAINER} ${AUTO_GEN}"
|
||||
echo "**** Labels for ${CONTAINER} changed, will generate new conf. ****"
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user