From a56128ae301ab6a4c8983870eb228378afc647c3 Mon Sep 17 00:00:00 2001 From: "bt.cn" <31841517+aaPanel@users.noreply.github.com> Date: Wed, 1 Sep 2021 16:01:41 +0800 Subject: [PATCH] #Clean up custom log format when uninstalling nginx or apache #Other optimization --- class/panelPlugin.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/class/panelPlugin.py b/class/panelPlugin.py index d8c7a95f..649625cb 100644 --- a/class/panelPlugin.py +++ b/class/panelPlugin.py @@ -296,6 +296,12 @@ class panelPlugin: if pluginInfo['name'] == 'mysql': if public.M('databases').count() > 0: return public.returnMsg(False,"RM_DB_WARN") + if pluginInfo['name'] == 'nginx': + import nginx + nginx.nginx().del_all_log_format(get) + if pluginInfo['name'] == 'apache': + import apache + apache.apache().del_all_log_format(get) get.type = '0' if session['server_os']['x'] != 'RHEL': get.type = '3' get.sName = get.sName.lower()