fix curl install
This commit is contained in:
1 parent
f7fb85d62f
commit
3f9cc89075
1 file changed
+55
@@ -32,8 +32,31 @@ get_versions() {
|
|||||||
clear
|
clear
|
||||||
echo -e "${MAGENTA}ZAPRET on remittor Manager by StressOzz${NC}\n"
|
echo -e "${MAGENTA}ZAPRET on remittor Manager by StressOzz${NC}\n"
|
||||||
echo -e "${GREEN}🔴 ${CYAN}Устанавливаем${NC} curl ${CYAN}для загрузки информации с ${NC}GitHub"
|
echo -e "${GREEN}🔴 ${CYAN}Устанавливаем${NC} curl ${CYAN}для загрузки информации с ${NC}GitHub"
|
||||||
|
|
||||||
|
local attempt=1
|
||||||
|
while [ $attempt -le 3 ]; do
|
||||||
|
echo -e "${GREEN}🔴 ${CYAN}Попытка установки ${NC}curl${CYAN} №${NC}${attempt}"
|
||||||
opkg update >/dev/null 2>&1
|
opkg update >/dev/null 2>&1
|
||||||
opkg install curl >/dev/null 2>&1
|
opkg install curl >/dev/null 2>&1
|
||||||
|
|
||||||
|
if command -v curl >/dev/null 2>&1; then
|
||||||
|
echo -e ""
|
||||||
|
echo -e "${BLUE}🔴 ${GREEN}Curl успешно установлен !${NC}"
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
echo -e ""
|
||||||
|
echo -e "${RED}Curl не найден после установки !${NC}"
|
||||||
|
attempt=$((attempt + 1))
|
||||||
|
sleep 2
|
||||||
|
done
|
||||||
|
|
||||||
|
if ! command -v curl >/dev/null 2>&1; then
|
||||||
|
echo -e ""
|
||||||
|
echo -e "${RED}Не удалось установить ${NC}curl${RED} после ${NC}3${RED} попыток !${NC}"
|
||||||
|
echo -e ""
|
||||||
|
echo -e "${YELLOW}Установите вручную, выполнив команду:${NC}opkg update && opkg install curl"
|
||||||
|
echo -e ""
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
LIMIT_REACHED=0
|
LIMIT_REACHED=0
|
||||||
@@ -243,6 +266,38 @@ store.cloudflare.steamstatic.com
|
|||||||
store.steampowered.com
|
store.steampowered.com
|
||||||
support.steampowered.com
|
support.steampowered.com
|
||||||
workshop.steampowered.com
|
workshop.steampowered.com
|
||||||
|
epicgames.com
|
||||||
|
store.epicgames.com
|
||||||
|
accounts.epicgames.com
|
||||||
|
account-public-service-prod03.ol.epicgames.com
|
||||||
|
accountportal-website-prod07.ol.epicgames.com
|
||||||
|
launcher-public-service-prod06.ol.epicgames.com
|
||||||
|
launcherwaitingroom-public-service-prod06.ol.epicgames.com
|
||||||
|
launcher-website-prod07.ol.epicgames.com
|
||||||
|
tracking.epicgames.com
|
||||||
|
catalog-public-service-prod06.ol.epicgames.com
|
||||||
|
entitlement-public-service-prod08.ol.epicgames.com
|
||||||
|
lightswitch-public-service-prod06.ol.epicgames.com
|
||||||
|
friends-public-service-prod06.ol.epicgames.com
|
||||||
|
orderprocessor-public-service-ecomprod01.ol.epicgames.com
|
||||||
|
ut-public-service-prod10.ol.epicgames.com
|
||||||
|
library-service.live.use1a.on.epicgames.com
|
||||||
|
datastorage-public-service-liveegs.live.use1a.on.epicgames.com
|
||||||
|
cdn1.unrealengine.com
|
||||||
|
cdn2.unrealengine.com
|
||||||
|
download.epicgames.com
|
||||||
|
download2.epicgames.com
|
||||||
|
download3.epicgames.com
|
||||||
|
download4.epicgames.com
|
||||||
|
fastly-download.epicgames.com
|
||||||
|
static-assets-prod.epicgames.com
|
||||||
|
store-site-backend-static.ak.epicgames.com
|
||||||
|
store-content.ak.epicgames.com
|
||||||
|
datarouter.ol.epicgames.com
|
||||||
|
epicgames-download1.akamaized.net
|
||||||
|
api.epicgames.dev
|
||||||
|
metrics.ol.epicgames.com
|
||||||
|
et.epicgames.com
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat >> /opt/zapret/ipset/zapret-hosts-google.txt <<'EOF'
|
cat >> /opt/zapret/ipset/zapret-hosts-google.txt <<'EOF'
|
||||||
|
|||||||
Reference in new issue
Block a user