Add azure source when system is centos8

https://github.com/kubesphere/kubekey/issues/357

Signed-off-by: Forest-L <lilin@yunify.com>
This commit is contained in:
Forest-L 2020-11-06 18:51:35 +08:00
parent 1e783f1910
commit f5ce180723

View File

@ -5,6 +5,14 @@ docker_version=19.03.13
#apt_yum_url="https://download.docker.com"
apt_yum_url="https://mirrors.aliyun.com/docker-ce"
VERSION=`cat /etc/os-release | grep VERSION_ID | awk -F "" '{print $13}'`
if [ "$VERSION" -eq 8 ]
then
apt_yum_url="https://mirror.azure.cn/docker-ce"
fi
rhel_repos="
rhel-7-server-extras-rpms
rhui-REGION-rhel-server-extras