diff --git a/src/bind/build/dns-monitor.sh b/src/bind/build/dns-monitor.sh index 2890b47..12fdb76 100644 --- a/src/bind/build/dns-monitor.sh +++ b/src/bind/build/dns-monitor.sh @@ -17,6 +17,9 @@ log_message() { log_message "DNS监控脚本启动" +log_message "删除DNS备份文件(如果存在)" +rm -f $DNS_BACKUP + while true; do if [ -f "$DNS_CONF" ]; then if [ -f "$DNS_BACKUP" ]; then