From 4ac797406a4a9ee8418f3ef358c65244b113dfe1 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Thu, 26 Dec 2024 18:00:42 +0800 Subject: [PATCH] Update update.sh --- scripts/old/update.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/old/update.sh b/scripts/old/update.sh index 396064ef73..251426d4f1 100644 --- a/scripts/old/update.sh +++ b/scripts/old/update.sh @@ -80,16 +80,17 @@ if [ "$LOCAL_ADDR" != "common" ];then wget --no-check-certificate -O /tmp/master.zip https://github.com/midoks/mdserver-web/archive/refs/tags/${VERSION}.zip cd /tmp && unzip /tmp/master.zip - $CP_CMD -rf /tmp/mdserver-web/* /www/server/mdserver-web + $CP_CMD -rf /tmp/mdserver-web-${VERSION}/* /www/server/mdserver-web rm -rf /tmp/master.zip - rm -rf /tmp/mdserver-web + rm -rf /tmp/mdserver-web-${VERSION} else + # curl --insecure -sSLo /tmp/master.zip https://github.com/midoks/mdserver-web/archive/refs/tags/0.17.3.zip curl --insecure -sSLo /tmp/master.zip https://github.com/midoks/mdserver-web/archive/refs/tags/${VERSION}.zip cd /tmp && unzip /tmp/master.zip - $CP_CMD -rf /tmp/mdserver-web-master/* /www/server/mdserver-web + $CP_CMD -rf /tmp/mdserver-web-${VERSION}/* /www/server/mdserver-web rm -rf /tmp/master.zip - rm -rf /tmp/mdserver-web-master + rm -rf /tmp/mdserver-web-${VERSION} fi