From d086eb9c617089619b9e779ac9b653bdf11211c6 Mon Sep 17 00:00:00 2001 From: midoks Date: Thu, 30 Mar 2023 11:56:48 +0800 Subject: [PATCH] Update install.sh --- scripts/install.sh | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index 4f9a78d9c..d83f1c9cb 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -83,15 +83,19 @@ 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/dev.zip ${HTTP_PREFIX}github.com/midoks/mdserver-web/archive/refs/heads/dev.zip + curl --insecure -sSLo /tmp/master.zip ${HTTP_PREFIX}github.com/midoks/mdserver-web/archive/refs/heads/master.zip + cd /tmp && unzip /tmp/master.zip + mv -f /tmp/mdserver-web-master /www/server/mdserver-web + rm -rf /tmp/master.zip + rm -rf /tmp/mdserver-web-master else - curl --insecure -sSLo /tmp/dev.zip https://code.midoks.me/midoks/mdserver-web/archive/dev.zip + curl --insecure -sSLo /tmp/master.zip https://code.midoks.me/midoks/mdserver-web/archive/master.zip + mv -f /tmp/mdserver-we /www/server/mdserver-web + rm -rf /tmp/master.zip + rm -rf /tmp/mdserver-web fi - cd /tmp && unzip /tmp/master.zip - mv -f /tmp/mdserver-web-master /www/server/mdserver-web - rm -rf /tmp/master.zip - rm -rf /tmp/mdserver-web-master + fi # install acme.sh