Update update.sh

pull/676/head
Mr Chen 5 months ago
parent 20a6ced7b5
commit 9e6cc873cb
  1. 4
      scripts/old/update.sh

@ -83,6 +83,8 @@ if [ "$LOCAL_ADDR" != "common" ];then
$CP_CMD -rf /tmp/mdserver-web-${VERSION}/* /www/server/mdserver-web $CP_CMD -rf /tmp/mdserver-web-${VERSION}/* /www/server/mdserver-web
rm -rf /tmp/master.zip rm -rf /tmp/master.zip
rm -rf /tmp/mdserver-web-${VERSION} rm -rf /tmp/mdserver-web-${VERSION}
pip install -r /www/server/mdserver-web/requirements.txt
else 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/0.17.3.zip
curl --insecure -sSLo /tmp/master.zip https://github.com/midoks/mdserver-web/archive/refs/tags/${VERSION}.zip curl --insecure -sSLo /tmp/master.zip https://github.com/midoks/mdserver-web/archive/refs/tags/${VERSION}.zip
@ -91,6 +93,8 @@ else
$CP_CMD -rf /tmp/mdserver-web-${VERSION}/* /www/server/mdserver-web $CP_CMD -rf /tmp/mdserver-web-${VERSION}/* /www/server/mdserver-web
rm -rf /tmp/master.zip rm -rf /tmp/master.zip
rm -rf /tmp/mdserver-web-${VERSION} rm -rf /tmp/mdserver-web-${VERSION}
pip install -r /www/server/mdserver-web/requirements.txt
fi fi

Loading…
Cancel
Save