Fix live-attack-monitor, bot-analyzer compression, and user-manager temp dir
- live-attack-monitor.sh: Remove snapshot loading, fix Apache log monitoring, add IP file sync - bot-analyzer.sh: Implement gzip compression for large temp files (10-20x space savings) - run.sh: Add HISTFILE fallback to prevent crashes when sourced - user-manager.sh: Initialize TEMP_SESSION_DIR to fix user indexing errors
This commit is contained in:
+4
-7
@@ -81,24 +81,21 @@ list_system_users() {
|
||||
|
||||
get_user_info() {
|
||||
local username="$1"
|
||||
local info_file="${TEMP_SESSION_DIR}/user_${username}_info.tmp"
|
||||
|
||||
case "$SYS_CONTROL_PANEL" in
|
||||
cpanel)
|
||||
get_cpanel_user_info "$username" > "$info_file"
|
||||
get_cpanel_user_info "$username"
|
||||
;;
|
||||
plesk)
|
||||
get_plesk_user_info "$username" > "$info_file"
|
||||
get_plesk_user_info "$username"
|
||||
;;
|
||||
interworx)
|
||||
get_interworx_user_info "$username" > "$info_file"
|
||||
get_interworx_user_info "$username"
|
||||
;;
|
||||
*)
|
||||
get_system_user_info "$username" > "$info_file"
|
||||
get_system_user_info "$username"
|
||||
;;
|
||||
esac
|
||||
|
||||
cat "$info_file"
|
||||
}
|
||||
|
||||
# cPanel user info
|
||||
|
||||
Reference in New Issue
Block a user