mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 05:59:25 +08:00
up
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user