pull/257/head
midoks 3 years ago
parent 5a635fcbba
commit 3cfbf554e1
  1. 8
      plugins/mysql-yum/install.sh
  2. 4
      plugins/mysql-yum/versions/8.0/install.sh

@ -35,6 +35,14 @@ if [ "${action}" == "uninstall" ];then
cd ${rootPath} && python3 plugins/mysql-yum/index.py stop ${type}
cd ${rootPath} && python3 plugins/mysql-yum/index.py initd_uninstall ${type}
cd $curPath
if [ -f /usr/lib/systemd/system/mysql-yum.service ] || [ -f /lib/systemd/system/mysql-yum.service ];then
systemctl stop mysql-yum
systemctl disable mysql-yum
rm -rf /usr/lib/systemd/system/mysql-yum.service
rm -rf /lib/systemd/system/mysql-yum.service
systemctl daemon-reload
fi
fi
sh -x $curPath/versions/$2/install.sh $1

@ -95,9 +95,7 @@ Uninstall_mysql()
if [ "$isYum" != "" ];then
YUM_UNINSTALL
fi
rm -rf $serverPath/mysql-ya
rm -rf $serverPath/mysql-yum
echo '卸载完成' > $install_tmp
}

Loading…
Cancel
Save