diff --git a/scripts/update_dev.sh b/scripts/update_dev.sh index b2d4e9ea0..5056376af 100755 --- a/scripts/update_dev.sh +++ b/scripts/update_dev.sh @@ -75,13 +75,14 @@ echo "local:${LOCAL_ADDR}" CP_CMD=/usr/bin/cp if [ -f /bin/cp ];then - CP_CMD=/bin/cp + CP_CMD=/bin/cp fi echo "update mdserver-web code start" if [ "$LOCAL_ADDR" != "common" ];then - curl --insecure -sSLo /tmp/dev.zip https://code.midoks.icu/midoks/mdserver-web/archive/dev.zip + wget --no-check-certificate /tmp/dev.zip https://code.midoks.icu/midoks/mdserver-web/archive/dev.zip + # curl --insecure -sSLo /tmp/dev.zip https://code.midoks.icu/midoks/mdserver-web/archive/dev.zip cd /tmp && unzip /tmp/dev.zip $CP_CMD -rf /tmp/mdserver-web/* /www/server/mdserver-web