减少网络请求

pull/109/head
midoks 3 years ago
parent be14ad2bfb
commit e5428c78e8
  1. 2
      scripts/install.sh
  2. 2
      scripts/install_cn.sh
  3. 6
      scripts/install_dev.sh
  4. 2
      scripts/update.sh
  5. 2
      scripts/update_cn.sh
  6. 5
      scripts/update_dev.sh

@ -75,7 +75,7 @@ if [ $OSNAME != "macos" ];then
fi fi
echo "use system version: ${OSNAME}" echo "use system version: ${OSNAME}"
curl -fsSL https://raw.githubusercontent.com/midoks/mdserver-web/master/scripts/install/${OSNAME}.sh | bash cd /www/server/mdserver-web && bash scripts/install/${OSNAME}.sh
chmod +x /www/server/mdserver-web/mw-cli chmod +x /www/server/mdserver-web/mw-cli
if [ ! -e /usr/bin/mw-cli ]; then if [ ! -e /usr/bin/mw-cli ]; then

@ -75,7 +75,7 @@ if [ $OSNAME != "macos" ];then
fi fi
echo "use system version: ${OSNAME}" echo "use system version: ${OSNAME}"
curl -fsSL https://gitee.com/midoks/mdserver-web/raw/master/scripts/install/${OSNAME}.sh | bash cd /www/server/mdserver-web && bash scripts/install/${OSNAME}.sh
chmod +x /www/server/mdserver-web/mw-cli chmod +x /www/server/mdserver-web/mw-cli
if [ ! -e /usr/bin/mw-cli ]; then if [ ! -e /usr/bin/mw-cli ]; then

@ -74,7 +74,11 @@ if [ $OSNAME != "macos" ];then
fi fi
echo "use system version: ${OSNAME}" echo "use system version: ${OSNAME}"
curl -fsSL https://raw.githubusercontent.com/midoks/mdserver-web/dev/scripts/install/${OSNAME}.sh | bash
# cd /www/server/mdserver-web && bash ./scripts/install/debian.sh
cd /www/server/mdserver-web && bash scripts/install/${OSNAME}.sh
# curl -fsSL https://raw.githubusercontent.com/midoks/mdserver-web/dev/scripts/install/${OSNAME}.sh | bash
chmod +x /www/server/mdserver-web/mw-cli chmod +x /www/server/mdserver-web/mw-cli
if [ ! -e /usr/bin/mw-cli ]; then if [ ! -e /usr/bin/mw-cli ]; then

@ -57,7 +57,7 @@ rm -rf /tmp/mdserver-web-master
#pip uninstall public #pip uninstall public
echo "use system version: ${OSNAME}" echo "use system version: ${OSNAME}"
curl -fsSL https://raw.githubusercontent.com/midoks/mdserver-web/master/scripts/update/${OSNAME}.sh | bash cd /www/server/mdserver-web && bash scripts/update/${OSNAME}.sh
endTime=`date +%s` endTime=`date +%s`
((outTime=($endTime-$startTime)/60)) ((outTime=($endTime-$startTime)/60))

@ -57,7 +57,7 @@ rm -rf /tmp/mdserver-web-master
#pip uninstall public #pip uninstall public
echo "use system version: ${OSNAME}" echo "use system version: ${OSNAME}"
curl -fsSL https://gitee.com/midoks/mdserver-web/raw/master/scripts/update/${OSNAME}.sh | bash cd /www/server/mdserver-web && bash scripts/update/${OSNAME}.sh
endTime=`date +%s` endTime=`date +%s`
((outTime=($endTime-$startTime)/60)) ((outTime=($endTime-$startTime)/60))

@ -57,7 +57,10 @@ rm -rf /tmp/mdserver-web-dev
#pip uninstall public #pip uninstall public
echo "use system version: ${OSNAME}" echo "use system version: ${OSNAME}"
curl -fsSL https://raw.githubusercontent.com/midoks/mdserver-web/dev/scripts/update/${OSNAME}.sh | bash
# cd /www/server/mdserver-web && bash ./scripts/install/debian.sh
cd /www/server/mdserver-web && bash scripts/update/${OSNAME}.sh
# curl -fsSL https://raw.githubusercontent.com/midoks/mdserver-web/dev/scripts/update/${OSNAME}.sh | bash
endTime=`date +%s` endTime=`date +%s`
((outTime=($endTime-$startTime)/60)) ((outTime=($endTime-$startTime)/60))

Loading…
Cancel
Save