From db0727cdc7d1c338b5188c45831548b8f570524b Mon Sep 17 00:00:00 2001 From: yuyr Date: Fri, 26 Sep 2025 09:44:19 +0000 Subject: [PATCH] =?UTF-8?q?[#1]=20=E4=BF=AE=E5=A4=8Dbind9=20=E6=9C=AA?= =?UTF-8?q?=E6=A3=80=E6=B5=8B=E5=88=B0=E5=9F=9F=E5=90=8D=E5=8F=98=E5=8C=96?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E9=87=8D=E5=90=AF=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/bind/build/argus_dns_sync.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/bind/build/argus_dns_sync.sh b/src/bind/build/argus_dns_sync.sh index 76c8f88..7cc8be4 100644 --- a/src/bind/build/argus_dns_sync.sh +++ b/src/bind/build/argus_dns_sync.sh @@ -61,7 +61,10 @@ upsert_record() { echo "[SKIP] ${name} unchanged (${new_ip})" fi - return $changed + if [[ $changed -eq 1 ]]; then + return 0 + fi + return 1 } while true; do @@ -97,4 +100,3 @@ while true; do sleep "$SLEEP_SECONDS" done -