From 7ac4000687ba4b2ea7109a0184b63b1f1894276e Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Fri, 28 Jun 2024 22:37:20 +0800 Subject: [PATCH 1/4] Update index.py --- plugins/clean/index.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/clean/index.py b/plugins/clean/index.py index bff9ed1ec7..465107933b 100755 --- a/plugins/clean/index.py +++ b/plugins/clean/index.py @@ -88,6 +88,7 @@ def initConf(): "/var/log/btmp.*", "/var/log/sa/sa*", "/var/log/sysstat/sa*", + "/var/log/atop/atop*", "/var/log/anaconda/*.log", "/var/log/dpkg.log.*", From 72961e3dca6dfd9c0b0740ccfeda56a9e2a0d06a Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Sat, 29 Jun 2024 00:18:38 +0800 Subject: [PATCH 2/4] Update logs_api.py --- class/core/logs_api.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/class/core/logs_api.py b/class/core/logs_api.py index e0e859274c..beb2cdb57b 100644 --- a/class/core/logs_api.py +++ b/class/core/logs_api.py @@ -124,10 +124,13 @@ def getAuditLogsFilesApi(self): if log_suffix[0] in ['gz', 'xz', 'bz2', 'asl']: continue - if log_file in ['.', '..', 'faillog', 'fontconfig.log', 'unattended-upgrades', 'tallylog']: + if log_file in ['.', '..']: continue filename = os.path.join(log_dir, log_file) + if not os.path.exists(filename): + continue + if os.path.isfile(filename): file_size = os.path.getsize(filename) if not file_size: From fa0bca88b309840bb7f915a9c90ec7c238297035 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Mon, 1 Jul 2024 13:31:22 +0800 Subject: [PATCH 3/4] update --- plugins/mysql-apt/js/mysql-apt.js | 9 +++++---- plugins/mysql-yum/js/mysql-yum.js | 9 +++++---- plugins/mysql/js/mysql.js | 9 +++++---- 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/plugins/mysql-apt/js/mysql-apt.js b/plugins/mysql-apt/js/mysql-apt.js index 830e8a17c9..56ee38ff50 100755 --- a/plugins/mysql-apt/js/mysql-apt.js +++ b/plugins/mysql-apt/js/mysql-apt.js @@ -1707,7 +1707,7 @@ function addMasterRepSlaveUser(){ -function updateMasterRepSlaveUser(username){ +function updateMasterRepSlaveUser(username, password){ var index = layer.open({ type: 1, @@ -1720,7 +1720,7 @@ function updateMasterRepSlaveUser(username){
用户名
\
\ 密码\ -
\ +
\
\ \
\ @@ -1888,10 +1888,11 @@ function getMasterRepSlaveList(){ for (i in user_list) { // console.log(i); var name = user_list[i]['username']; + var password = user_list[i]['password']; list += ''+name+'\ - '+user_list[i]['password']+'\ + '+password+'\ \ - 修改 | \ + 修改 | \ 删除 | \ 权限 | \ 从库同步命令\ diff --git a/plugins/mysql-yum/js/mysql-yum.js b/plugins/mysql-yum/js/mysql-yum.js index 6ec2592cf2..1b12b88c82 100755 --- a/plugins/mysql-yum/js/mysql-yum.js +++ b/plugins/mysql-yum/js/mysql-yum.js @@ -1707,7 +1707,7 @@ function addMasterRepSlaveUser(){ -function updateMasterRepSlaveUser(username){ +function updateMasterRepSlaveUser(username, password){ var index = layer.open({ type: 1, @@ -1720,7 +1720,7 @@ function updateMasterRepSlaveUser(username){
用户名
\
\ 密码\ -
\ +
\
\ \
\ @@ -1888,10 +1888,11 @@ function getMasterRepSlaveList(){ for (i in user_list) { // console.log(i); var name = user_list[i]['username']; + var password = user_list[i]['password']; list += ''+name+'\ - '+user_list[i]['password']+'\ + '+password+'\ \ - 修改 | \ + 修改 | \ 删除 | \ 权限 | \ 从库同步命令\ diff --git a/plugins/mysql/js/mysql.js b/plugins/mysql/js/mysql.js index a9e446e17e..79e0da90ae 100755 --- a/plugins/mysql/js/mysql.js +++ b/plugins/mysql/js/mysql.js @@ -1707,7 +1707,7 @@ function addMasterRepSlaveUser(){ -function updateMasterRepSlaveUser(username){ +function updateMasterRepSlaveUser(username, password){ var index = layer.open({ type: 1, @@ -1720,7 +1720,7 @@ function updateMasterRepSlaveUser(username){
用户名
\
\ 密码\ -
\ +
\
\ \
\ @@ -1888,10 +1888,11 @@ function getMasterRepSlaveList(){ for (i in user_list) { // console.log(i); var name = user_list[i]['username']; + var password = user_list[i]['password']; list += ''+name+'\ - '+user_list[i]['password']+'\ + '+password+'\ \ - 修改 | \ + 修改 | \ 删除 | \ 权限 | \ 从库同步命令\ From 92525b05495c13f76636c2a3cbd196eab816311d Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Mon, 1 Jul 2024 13:32:24 +0800 Subject: [PATCH 4/4] Update mariadb.js --- plugins/mariadb/js/mariadb.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/plugins/mariadb/js/mariadb.js b/plugins/mariadb/js/mariadb.js index 5c3304c3a7..7ab1920090 100755 --- a/plugins/mariadb/js/mariadb.js +++ b/plugins/mariadb/js/mariadb.js @@ -1655,7 +1655,7 @@ function addMasterRepSlaveUser(){ -function updateMasterRepSlaveUser(username){ +function updateMasterRepSlaveUser(username, password){ var index = layer.open({ type: 1, @@ -1668,7 +1668,7 @@ function updateMasterRepSlaveUser(username){
用户名
\
\ 密码\ -
\ +
\
\ \
\ @@ -1844,10 +1844,11 @@ function getMasterRepSlaveList(){ for (i in user_list) { // console.log(i); var name = user_list[i]['username']; + var password = user_list[i]['password']; list += ''+name+'\ - '+user_list[i]['password']+'\ + '+password+'\ \ - 修改 | \ + 修改 | \ 删除 | \ 权限 | \ 从库同步命令\