From 03077b4498c06f989f5132bf174744ecee70ba73 Mon Sep 17 00:00:00 2001 From: midoks Date: Mon, 11 Jul 2022 23:23:55 +0800 Subject: [PATCH] Update install.sh --- plugins/mysql/install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/mysql/install.sh b/plugins/mysql/install.sh index 69d99bcb0..51a3f3c15 100755 --- a/plugins/mysql/install.sh +++ b/plugins/mysql/install.sh @@ -26,10 +26,11 @@ fi if [ "${action}" == "uninstall" ];then - if [ -f /usr/lib/systemd/system/mysql.service ];then + if [ -f /usr/lib/systemd/system/mysql.service ] || [ -f /lib/systemd/system/mysql.service ];then systemctl stop mysql systemctl disable mysql rm -rf /usr/lib/systemd/system/mysql.service + rm -rf /lib/systemd/system/mysql.service systemctl daemon-reload fi fi