Внес правки в скрипт

This commit is contained in:
2025-04-04 16:11:43 +03:00
parent 497470c1cd
commit 37a3712b80
+5 -5
View File
@@ -22,8 +22,8 @@ cat > /etc/init.d/getdomains << EOF
START=99
start () {
VPN_NOT_WOKRING=$(sing-box -c /etc/sing-box/config.json tools fetch instagram.com 2>&1 | grep FATAL)
if [ -z "${VPN_NOT_WOKRING}" ]
VPN_NOT_WOKRING=\$(sing-box -c /etc/sing-box/config.json tools fetch instagram.com 2>&1 | grep FATAL)
if [ -z "\${VPN_NOT_WOKRING}" ]
then
# WITHOUT YOUTUBE
DOMAINS=https://raw.githubusercontent.com/AnotherProksY/allow-domains-no-youtube/main/Russia/inside-dnsmasq-nfset.lst
@@ -35,11 +35,11 @@ start () {
count=0
while true; do
if curl -m 3 github.com; then
curl -f $DOMAINS --output /tmp/dnsmasq.d/domains.lst
curl -f \$DOMAINS --output /tmp/dnsmasq.d/domains.lst
break
else
echo "GitHub is not available. Check the internet availability [$count]"
count=$((count+1))
echo "GitHub is not available. Check the internet availability [\$count]"
count=\$((count+1))
fi
done