diff --git a/os/get-mysql.sh b/os/get-mysql.sh index 1a97b2c..1223d3c 100644 --- a/os/get-mysql.sh +++ b/os/get-mysql.sh @@ -30,9 +30,7 @@ rm -rvf /etc/my.cnf /var/lib/mysql /var/log/mysql* userdel -rf mysql &>/dev/null ping -c1 -w1 www.baidu.com &>/dev/null if [[ $? -eq 0 ]];then - if [ ! -f /tmp/.init ];then - yum install -y https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm - fi + yum install -y https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm else color Error "网络错误" exit 22