pull/267/head
midoks 3 years ago
parent 6ef897addd
commit 578fa62c84
  1. 4
      scripts/install.sh
  2. 4
      scripts/update.sh
  3. 4
      scripts/update_dev.sh

@ -76,9 +76,9 @@ if [ $OSNAME != "macos" ];then
cn=$(curl -fsSL -m 10 http://ipinfo.io/json | grep "\"country\": \"CN\"") cn=$(curl -fsSL -m 10 http://ipinfo.io/json | grep "\"country\": \"CN\"")
if [ ! -z "$cn" ];then if [ ! -z "$cn" ];then
wget -O /tmp/master.zip https://gitee.com/midoks/mdserver-web/repository/archive/master.zip curl -sSLo /tmp/master.zip https://gitee.com/midoks/mdserver-web/repository/archive/master.zip
else else
wget -O /tmp/master.zip https://codeload.github.com/midoks/mdserver-web/zip/master curl -sSLo /tmp/master.zip https://codeload.github.com/midoks/mdserver-web/zip/master
fi fi
cd /tmp && unzip /tmp/master.zip cd /tmp && unzip /tmp/master.zip

@ -52,9 +52,9 @@ fi
cn=$(curl -fsSL -m 10 http://ipinfo.io/json | grep "\"country\": \"CN\"") cn=$(curl -fsSL -m 10 http://ipinfo.io/json | grep "\"country\": \"CN\"")
if [ ! -z "$cn" ];then if [ ! -z "$cn" ];then
wget -O /tmp/master.zip https://gitee.com/midoks/mdserver-web/repository/archive/master.zip curl -sSLo /tmp/master.zip https://gitee.com/midoks/mdserver-web/repository/archive/master.zip
else else
wget -O /tmp/master.zip https://codeload.github.com/midoks/mdserver-web/zip/master curl -sSLo /tmp/master.zip https://codeload.github.com/midoks/mdserver-web/zip/master
fi fi

@ -51,9 +51,9 @@ fi
cn=$(curl -fsSL -m 10 http://ipinfo.io/json | grep "\"country\": \"CN\"") cn=$(curl -fsSL -m 10 http://ipinfo.io/json | grep "\"country\": \"CN\"")
if [ ! -z "$cn" ];then if [ ! -z "$cn" ];then
wget -O /tmp/dev.zip https://gitee.com/midoks/mdserver-web/repository/archive/dev.zip curl -sSLo /tmp/dev.zip https://gitee.com/midoks/mdserver-web/repository/archive/dev.zip
else else
wget -O /tmp/dev.zip https://github.com/midoks/mdserver-web/archive/refs/heads/dev.zip curl -sSLo /tmp/dev.zip https://github.com/midoks/mdserver-web/archive/refs/heads/dev.zip
fi fi
# wget -O /tmp/dev.zip https://github.com/midoks/mdserver-web/archive/refs/heads/dev.zip # wget -O /tmp/dev.zip https://github.com/midoks/mdserver-web/archive/refs/heads/dev.zip

Loading…
Cancel
Save