From 22ba7dda5530713502fe18721b66c746f7f53d80 Mon Sep 17 00:00:00 2001 From: midoks Date: Wed, 29 Mar 2023 16:35:09 +0800 Subject: [PATCH] Update install.sh --- scripts/install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index 34de85b6f..4f9a78d9c 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -82,10 +82,10 @@ if [ $OSNAME != "macos" ];then # https://cdn.jsdelivr.net/gh/midoks/mdserver-web@latest/scripts/install.sh if [ ! -d /www/server/mdserver-web ];then - if [ "$LOCAL_ADDR" != "common" ];then - curl --insecure -sSLo /tmp/master.zip https://gitee.com/midoks/mdserver-web/repository/archive/master.zip + if [ "$LOCAL_ADDR" == "common" ];then + curl --insecure -sSLo /tmp/dev.zip ${HTTP_PREFIX}github.com/midoks/mdserver-web/archive/refs/heads/dev.zip else - curl --insecure -sSLo /tmp/master.zip https://code.midoks.me/midoks/mdserver-web/archive/master.zip + curl --insecure -sSLo /tmp/dev.zip https://code.midoks.me/midoks/mdserver-web/archive/dev.zip fi cd /tmp && unzip /tmp/master.zip