Skip to content

Commit

Permalink
add note for china users
Browse files Browse the repository at this point in the history
  • Loading branch information
Neilpang committed Sep 24, 2022
1 parent 7f71572 commit e9d965f
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,26 @@
_email="--$(echo "$_email" | tr '=' ' ')"
fi


_url="https://raw.githubusercontent.com/acmesh-official/acme.sh/$BRANCH/acme.sh"


_get=""

if _exists curl && [ "${ACME_USE_WGET:-0}" = "0" ]; then
curl https://raw.githubusercontent.com/acmesh-official/acme.sh/$BRANCH/acme.sh | sh -s -- --install-online $_email "$@"
_get="curl -L"
elif _exists wget ; then
wget -O - https://raw.githubusercontent.com/acmesh-official/acme.sh/$BRANCH/acme.sh | sh -s -- --install-online $_email "$@"
_get="wget -O -"
else
echo "Sorry, you must have curl or wget installed first."
echo "Please install either of them and try again."
exit 1
fi


if ! $_get "$_url" | sh -s -- --install-online $_email "$@"; then
echo "Install error"
echo "中国大陆用户请参考:"
echo "https://github.com/acmesh-official/acme.sh/wiki/Install-in-China"
fi

0 comments on commit e9d965f

Please sign in to comment.