💥 Prevent mainland China servers from running docker.sh
💥 防止中国大陆服务器运行 docker 一键安装脚本
Signed-off-by: xtaodada <xtao@xtaolink.cn>
This commit is contained in:
parent
f2588a065a
commit
8ac59c48d6
@ -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 "安装即将开始"
|
||||
|
Loading…
Reference in New Issue
Block a user