|
|
|
@ -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 |
|
|
|
|