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:
cschantz
2025-11-17 23:03:50 -05:00
parent b7417a6bfa
commit 09dfae6795
+6
View File
@@ -12,6 +12,12 @@ if [ -z "$TOOLKIT_BASE_DIR" ]; then
source "$SCRIPT_DIR/system-detect.sh"
fi
# Initialize temp session directory if not set
if [ -z "$TEMP_SESSION_DIR" ]; then
TEMP_SESSION_DIR="/tmp/server-toolkit-$$"
mkdir -p "$TEMP_SESSION_DIR" 2>/dev/null
fi
#############################################################################
# USER LISTING (Control Panel Specific)
#############################################################################