更新 'os/get-mysql.sh'

master
newrain001 7 months ago
parent 64738f328a
commit a8225dc930
  1. 4
      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

Loading…
Cancel
Save