From ed732232f2c913266e2c782d3fa845f2859fec02 Mon Sep 17 00:00:00 2001 From: dami Date: Sun, 23 Mar 2025 16:52:14 +0800 Subject: [PATCH] Update mw.tpl --- scripts/init.d/mw.tpl | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/scripts/init.d/mw.tpl b/scripts/init.d/mw.tpl index 8772d2356..2fe28b5d1 100755 --- a/scripts/init.d/mw.tpl +++ b/scripts/init.d/mw.tpl @@ -322,17 +322,18 @@ mw_update_venv() mw_mirror() { - LOCAL_ADDR=common - cn=$(curl -fsSL -m 10 -s http://ipinfo.io/json | grep "\"country\": \"CN\"") - if [ ! -z "$cn" ] || [ "$?" == "0" ] ;then - LOCAL_ADDR=cn - fi - - if [ "$LOCAL_ADDR" == "common" ];then - bash <(curl --insecure -sSL https://raw.githubusercontent.com/midoks/change-linux-mirrors/main/change-mirrors.sh) - else - bash <(curl --insecure -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh) - fi + # LOCAL_ADDR=common + # cn=$(curl -fsSL -m 10 -s http://ipinfo.io/json | grep "\"country\": \"CN\"") + # if [ ! -z "$cn" ] || [ "$?" == "0" ] ;then + # LOCAL_ADDR=cn + # fi + + # if [ "$LOCAL_ADDR" == "common" ];then + # bash <(curl --insecure -sSL https://raw.githubusercontent.com/midoks/change-linux-mirrors/main/change-mirrors.sh) + # else + # bash <(curl -sSL https://linuxmirrors.cn/main.sh) + # fi + bash <(curl -sSL https://linuxmirrors.cn/main.sh) cd ${ROOT_PATH} }