Add 2 hour timeout for nxresolve script, it hangs sometimes

This commit is contained in:
ValdikSS 2022-09-04 21:20:40 +03:00
parent 9cd3730494
commit f2dd73b7f0

View File

@ -26,7 +26,7 @@ awk -f scripts/getzones.awk temp/hostlist_original_with_include.txt | grep -v -F
if [[ "$RESOLVE_NXDOMAIN" == "yes" ]]; if [[ "$RESOLVE_NXDOMAIN" == "yes" ]];
then then
scripts/resolve-dns-nxdomain.py result/hostlist_zones.txt >> temp/exclude-hosts.txt timeout 2h scripts/resolve-dns-nxdomain.py result/hostlist_zones.txt >> temp/exclude-hosts.txt
awk -f scripts/getzones.awk temp/hostlist_original_with_include.txt | grep -v -F -x -f temp/exclude-hosts.txt | sort -u > result/hostlist_zones.txt awk -f scripts/getzones.awk temp/hostlist_original_with_include.txt | grep -v -F -x -f temp/exclude-hosts.txt | sort -u > result/hostlist_zones.txt
fi fi