Skip to content

Commit

Permalink
Update update.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
midoks committed Dec 26, 2024
1 parent bb3cdb5 commit 4ac7974
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/old/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 4ac7974

Please sign in to comment.