-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreset_admin_password.sh
More file actions
34 lines (25 loc) · 969 Bytes
/
Copy pathreset_admin_password.sh
File metadata and controls
34 lines (25 loc) · 969 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
set -euo pipefail
# ====================================================================
#
# EXO Proxy Fortress - Admin Password Reset Runner
#
# ====================================================================
VENV_DIR="venv"
COLOR_RESET='\e[0m'; COLOR_INFO='\e[1;34m'; COLOR_ERROR='\e[1;31m'
print_info() { echo -e "${COLOR_INFO}[INFO]${COLOR_RESET} $*"; }
print_error() { echo -e "${COLOR_ERROR}[ERROR]${COLOR_RESET} $*" >&2; }
# --- Check if virtual environment exists ---
if [ ! -d "$VENV_DIR" ]; then
print_error "Python virtual environment not found at './${VENV_DIR}'."
print_error "Please run './run.sh' first to complete the setup."
exit 1
fi
# --- Activate virtual environment and run the script ---
print_info "Activating Python virtual environment..."
source "${VENV_DIR}/bin/activate"
print_info "Running the admin password reset script..."
echo
python reset_admin_password.py
echo
print_info "Script finished."