From fb91e5c9f5689933200e44a9a9393173039e9ac8 Mon Sep 17 00:00:00 2001 From: Morozov Dmitriy Date: Tue, 4 Jun 2024 16:26:16 +0300 Subject: [PATCH] added sleep in getdomains --- getdomains-install.sh | 1 + templates/openwrt-getdomains.j2 | 2 ++ 2 files changed, 3 insertions(+) diff --git a/getdomains-install.sh b/getdomains-install.sh index f80fcf0..2444c26 100755 --- a/getdomains-install.sh +++ b/getdomains-install.sh @@ -530,6 +530,7 @@ cat << 'EOF' >> /etc/init.d/getdomains else echo "GitHub is not available. Check the internet availability [$count]" count=$((count+1)) + sleep 5 fi done diff --git a/templates/openwrt-getdomains.j2 b/templates/openwrt-getdomains.j2 index 5050402..95e3408 100644 --- a/templates/openwrt-getdomains.j2 +++ b/templates/openwrt-getdomains.j2 @@ -34,6 +34,7 @@ start () { else echo "GitHub is not available. Check the internet availability [$count]" count=$((count+1)) + sleep 5 fi done @@ -71,6 +72,7 @@ start () { else echo "antifilter.download is not available. Check the internet availability [$count]" count=$((count+1)) + sleep 5 fi done