[#1] 修复bind9 未检测到域名变化自动重启缺陷

This commit is contained in:
yuyr 2025-09-26 09:44:19 +00:00
parent 7f0290a8f4
commit db0727cdc7

View File

@ -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