From 8d28ee0b1a5266df8f3c21fb4d35d05940980409 Mon Sep 17 00:00:00 2001 From: cschantz Date: Mon, 17 Nov 2025 23:03:50 -0500 Subject: [PATCH] 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 --- lib/user-manager.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/user-manager.sh b/lib/user-manager.sh index 30fd0d1..60ba6a7 100755 --- a/lib/user-manager.sh +++ b/lib/user-manager.sh @@ -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) #############################################################################