mirror of
https://github.com/ParisNeo/lollms_hub.git
synced 2026-05-04 03:01:01 -04:00
Update all project references, documentation, and assets to reflect the new branding. Changes include: - Rename application references in README, CONTRIBUTING, DEVELOPMENT - Update default database filename from ollama_proxy.db to lollms_hub.db - Update .env.example header and bootstrap configuration - Adjust .gitignore for new database name - No functional code changes, purely cosmetic rebranding
34 lines
970 B
Bash
34 lines
970 B
Bash
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
# ====================================================================
|
|
#
|
|
# LoLLMs Hub 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." |