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:
pagdot
2023-02-13 23:06:25 +01:00
committed by GitHub
parent 407d0c86f6
commit 24e32b2359
+1 -1
View File
@@ -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