Внес правки в скрипт
This commit is contained in:
+5
-5
@@ -22,8 +22,8 @@ cat > /etc/init.d/getdomains << EOF
|
|||||||
START=99
|
START=99
|
||||||
|
|
||||||
start () {
|
start () {
|
||||||
VPN_NOT_WOKRING=$(sing-box -c /etc/sing-box/config.json tools fetch instagram.com 2>&1 | grep FATAL)
|
VPN_NOT_WOKRING=\$(sing-box -c /etc/sing-box/config.json tools fetch instagram.com 2>&1 | grep FATAL)
|
||||||
if [ -z "${VPN_NOT_WOKRING}" ]
|
if [ -z "\${VPN_NOT_WOKRING}" ]
|
||||||
then
|
then
|
||||||
# WITHOUT YOUTUBE
|
# WITHOUT YOUTUBE
|
||||||
DOMAINS=https://raw.githubusercontent.com/AnotherProksY/allow-domains-no-youtube/main/Russia/inside-dnsmasq-nfset.lst
|
DOMAINS=https://raw.githubusercontent.com/AnotherProksY/allow-domains-no-youtube/main/Russia/inside-dnsmasq-nfset.lst
|
||||||
@@ -35,11 +35,11 @@ start () {
|
|||||||
count=0
|
count=0
|
||||||
while true; do
|
while true; do
|
||||||
if curl -m 3 github.com; then
|
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
|
break
|
||||||
else
|
else
|
||||||
echo "GitHub is not available. Check the internet availability [$count]"
|
echo "GitHub is not available. Check the internet availability [\$count]"
|
||||||
count=$((count+1))
|
count=\$((count+1))
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user