diff --git a/utils/docker.sh b/utils/docker.sh index 30b4f69..bcada6d 100644 --- a/utils/docker.sh +++ b/utils/docker.sh @@ -7,6 +7,14 @@ then exit 1 fi +a=$(curl --noproxy '*' -sSL https://api.myip.com/) +b="China" +if [[ $a == *$b* ]] +then + echo "错误:本脚本不支持境内服务器使用。" 1>&2 + exit 1 +fi + welcome () { echo echo "安装即将开始"