dnscache-while.sh: fix bug

This commit is contained in:
CN_SZTL 2019-07-17 18:16:14 +08:00
parent ccce7f2957
commit a67a7afaa2
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -14,10 +14,11 @@ if [ $logrow -ge 500 ];then
fi
if [ $dnscache_enable = "3" ];then
adg_logrow=$(grep -c "" ${adg_logfile})
if [ $logrow -ge 500 ];then
if [ $adg_logrow -ge 500 ];then
cat /dev/null > ${adg_logfile}
echo "$curtime Log条数超限清空处理" >> ${adg_logfile}
fi
fi
}
while [ $dns_enable -eq 1 ];