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) #############################################################################