#Clean up custom log format when uninstalling nginx or apache

#Other optimization
This commit is contained in:
bt.cn
2021-09-01 16:01:41 +08:00
parent 257b3bf772
commit a56128ae30
+6
View File
@@ -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()