From e0f1a74f742c11638ccd1ec3e846ade0ae2a437d Mon Sep 17 00:00:00 2001 From: midoks Date: Wed, 2 Nov 2022 00:31:14 +0800 Subject: [PATCH] Update uninstall.sh --- scripts/uninstall.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/scripts/uninstall.sh b/scripts/uninstall.sh index 6a244eb98..141386b17 100755 --- a/scripts/uninstall.sh +++ b/scripts/uninstall.sh @@ -94,6 +94,23 @@ UNINSTALL_MEMCACHED() fi } +UNINSTALL_REDIS() +{ + if [ -d /www/server/redis ];then + echo -e "----------------------------------------------------" + echo -e "检查已有Redis环境,卸载可能影响现有站点及数据" + echo -e "----------------------------------------------------" + read -p "输入yes强制卸载所有Redis[yes/no]: " yes; + if [ "$yes" != "yes" ];then + echo -e "------------" + echo "取消卸载Redis" + else + cd /www/server/mdserver-web/plugins/redis && bash install.sh uninstall 7.0.4 + echo "卸载Redis成功" + fi + fi +} + UNINSTALL_MW() { read -p "输入yes强制卸载面板: " yes;