From a42fae66ac1f83e3f6151e83db9d9e52b4a8286d Mon Sep 17 00:00:00 2001 From: midoks Date: Fri, 24 Feb 2023 16:53:48 +0800 Subject: [PATCH] Update install_dev.sh --- scripts/install_dev.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/install_dev.sh b/scripts/install_dev.sh index e8abd19aa..f23c74682 100755 --- a/scripts/install_dev.sh +++ b/scripts/install_dev.sh @@ -97,8 +97,10 @@ if [ $OSNAME != "macos" ];then # install acme.sh if [ ! -d /root/.acme.sh ];then - if [ "$HTTP_PREFIX" == "https://ghproxy.com/" ];then - curl -sSL -o /tmp/acme.tar.gz ${HTTP_PREFIX}github.com/acmesh-official/acme.sh/archive/master.tar.gz + 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 -sSL -o /tmp/acme.tar.gz https://gitee.com/neilpang/acme.sh/repository/archive/master.zip + tar xvzf /tmp/acme.tar.gz -C /tmp cd /tmp/acme.sh-master bash acme.sh install