This commit is contained in:
parent
5a635fcbba
commit
3cfbf554e1
|
|
@ -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…
Reference in New Issue