diff --git a/scripts/install.sh b/scripts/install.sh index 2c6252ddd..87530710c 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -83,9 +83,9 @@ if [ $OSNAME != "macos" ];then # https://cdn.jsdelivr.net/gh/midoks/mdserver-web@latest/scripts/install.sh if [ ! -d /www/server/mdserver-web ];then if [ "$LOCAL_ADDR" != "common" ];then - curl -sSLo /tmp/master.zip https://gitee.com/midoks/mdserver-web/repository/archive/master.zip + curl --insecure -sSLo /tmp/master.zip https://gitee.com/midoks/mdserver-web/repository/archive/master.zip else - curl -sSLo /tmp/master.zip https://codeload.github.com/midoks/mdserver-web/zip/master + curl --insecure -sSLo /tmp/master.zip https://codeload.github.com/midoks/mdserver-web/zip/master fi cd /tmp && unzip /tmp/master.zip @@ -97,7 +97,7 @@ if [ $OSNAME != "macos" ];then # install acme.sh if [ ! -d /root/.acme.sh ];then if [ "$LOCAL_ADDR" != "common" ];then - curl -sSLo /tmp/acme.tar.gz https://gitee.com/neilpang/acme.sh/repository/archive/master.tar.gz + curl --insecure -sSLo /tmp/acme.tar.gz https://gitee.com/neilpang/acme.sh/repository/archive/master.tar.gz tar xvzf /tmp/acme.tar.gz -C /tmp cd /tmp/acme.sh-master bash acme.sh install @@ -113,9 +113,9 @@ fi echo "use system version: ${OSNAME}" if [ "${OSNAME}" == "macos" ];then if [ "$LOCAL_ADDR" != "common" ];then - curl -fsSL https://gitee.com/midoks/mdserver-web/raw/dev/scripts/install/macos.sh | bash + curl --insecure -fsSL https://gitee.com/midoks/mdserver-web/raw/dev/scripts/install/macos.sh | bash else - curl -fsSL ${HTTP_PREFIX}https://raw.githubusercontent.com/midoks/mdserver-web/dev/scripts/install/macos.sh | bash + curl --insecure -fsSL ${HTTP_PREFIX}https://raw.githubusercontent.com/midoks/mdserver-web/dev/scripts/install/macos.sh | bash fi else cd /www/server/mdserver-web && bash scripts/install/${OSNAME}.sh diff --git a/scripts/install_dev.sh b/scripts/install_dev.sh index 64db6d4c8..022e1d9db 100755 --- a/scripts/install_dev.sh +++ b/scripts/install_dev.sh @@ -84,9 +84,9 @@ if [ $OSNAME != "macos" ];then if [ ! -d /www/server/mdserver-web ];then if [ "$LOCAL_ADDR" == "common" ];then - curl -sSLo /tmp/dev.zip ${HTTP_PREFIX}github.com/midoks/mdserver-web/archive/refs/heads/dev.zip + curl --insecure -sSLo /tmp/dev.zip ${HTTP_PREFIX}github.com/midoks/mdserver-web/archive/refs/heads/dev.zip else - curl -sSLo /tmp/dev.zip https://gitee.com/midoks/mdserver-web/repository/archive/dev.zip + curl --insecure -sSLo /tmp/dev.zip https://gitee.com/midoks/mdserver-web/repository/archive/dev.zip fi cd /tmp && unzip /tmp/dev.zip @@ -99,7 +99,7 @@ if [ $OSNAME != "macos" ];then if [ ! -d /root/.acme.sh ];then if [ "$LOCAL_ADDR" != "common" ];then # curl -sSL -o /tmp/acme.tar.gz ${HTTP_PREFIX}github.com/acmesh-official/acme.sh/archive/master.tar.gz - curl -sSLo /tmp/acme.tar.gz https://gitee.com/neilpang/acme.sh/repository/archive/master.tar.gz + curl --insecure -sSLo /tmp/acme.tar.gz https://gitee.com/neilpang/acme.sh/repository/archive/master.tar.gz tar xvzf /tmp/acme.tar.gz -C /tmp cd /tmp/acme.sh-master bash acme.sh install @@ -116,9 +116,9 @@ echo "use system version: ${OSNAME}" if [ "${OSNAME}" == "macos" ];then if [ "$LOCAL_ADDR" != "common" ];then - curl -fsSL https://gitee.com/midoks/mdserver-web/raw/dev/scripts/install/macos.sh | bash + curl --insecure -fsSL https://gitee.com/midoks/mdserver-web/raw/dev/scripts/install/macos.sh | bash else - curl -fsSL ${HTTP_PREFIX}https://raw.githubusercontent.com/midoks/mdserver-web/dev/scripts/install/macos.sh | bash + curl --insecure -fsSL ${HTTP_PREFIX}https://raw.githubusercontent.com/midoks/mdserver-web/dev/scripts/install/macos.sh | bash fi else cd /www/server/mdserver-web && bash scripts/install/${OSNAME}.sh diff --git a/scripts/update.sh b/scripts/update.sh index aff7619d3..71deb4f79 100755 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -66,9 +66,9 @@ fi if [ "$LOCAL_ADDR" != "common" ];then - curl -sSLo /tmp/master.zip https://gitee.com/midoks/mdserver-web/repository/archive/master.zip + curl --insecure -sSLo /tmp/master.zip https://gitee.com/midoks/mdserver-web/repository/archive/master.zip else - curl -sSLo /tmp/master.zip https://codeload.github.com/midoks/mdserver-web/zip/master + curl --insecure -sSLo /tmp/master.zip https://codeload.github.com/midoks/mdserver-web/zip/master fi diff --git a/scripts/update_dev.sh b/scripts/update_dev.sh index 07e40dfe5..6530a9fdf 100755 --- a/scripts/update_dev.sh +++ b/scripts/update_dev.sh @@ -64,9 +64,9 @@ if [ "$?" != "0" ];then fi if [ "$LOCAL_ADDR" != "common" ];then - curl -sSLo /tmp/dev.zip https://gitee.com/midoks/mdserver-web/repository/archive/dev.zip + curl --insecure -sSLo /tmp/dev.zip https://gitee.com/midoks/mdserver-web/repository/archive/dev.zip else - curl -sSLo /tmp/dev.zip https://github.com/midoks/mdserver-web/archive/refs/heads/dev.zip + curl --insecure -sSLo /tmp/dev.zip https://github.com/midoks/mdserver-web/archive/refs/heads/dev.zip fi # wget -O /tmp/dev.zip https://github.com/midoks/mdserver-web/archive/refs/heads/dev.zip