mirror of
https://github.com/aaPanel/aaPanel.git
synced 2026-08-17 21:25:47 +02:00
#Clean up custom log format when uninstalling nginx or apache
#Other optimization
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user