|
|
@ -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 |
|
|
|