💥 Prevent mainland China servers from running docker.sh

💥 防止中国大陆服务器运行 docker 一键安装脚本

Signed-off-by: xtaodada <xtao@xtaolink.cn>
This commit is contained in:
xtaodada 2022-03-05 06:06:43 -05:00
parent f2588a065a
commit 8ac59c48d6

View File

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