From 76f7f51d809d9d953660fad5ffbbf112211c7015 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 11 Sep 2026 20:15:43 +0800 Subject: [PATCH] Update install.sh --- plugins/mysql/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/mysql/install.sh b/plugins/mysql/install.sh index a1e20d13c..415749d34 100755 --- a/plugins/mysql/install.sh +++ b/plugins/mysql/install.sh @@ -47,7 +47,7 @@ if [ -d $serverPath/mysql ];then exit 0 fi -if [ "${action}" == "uninstall" ];then +if [ "${action}" -eq "uninstall" ];then if [ -f /usr/lib/systemd/system/mysql.service ] || [ -f /lib/systemd/system/mysql.service ];then systemctl stop mysql @@ -60,7 +60,7 @@ fi bash -x $curPath/versions/$2/install.sh $1 -if [ "${action}" == "install" ] && [ -d $serverPath/mysql ];then +if [ "${action}" -eq "install" ] && [ -d $serverPath/mysql ];then #初始化 cd ${rootPath} && python3 ${rootPath}/plugins/mysql/index.py start ${type} cd ${rootPath} && python3 ${rootPath}/plugins/mysql/index.py initd_install ${type}