From dab26854981156009ecd972f9dbd252ded231da2 Mon Sep 17 00:00:00 2001 From: Jon Date: Sun, 7 Jun 2026 20:24:03 +0100 Subject: [PATCH] some changes in startup --- manager/start.sh | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/manager/start.sh b/manager/start.sh index e6b69d1..df08de0 100755 --- a/manager/start.sh +++ b/manager/start.sh @@ -3,15 +3,20 @@ set -e cd "$(dirname "$0")" -# Bootstrap virtualenv on first run -if [ ! -d ".venv" ]; then - echo "Creating virtualenv..." +# Bootstrap virtualenv — check for uvicorn specifically so partial installs are retried +if [ ! -f ".venv/bin/uvicorn" ]; then + echo "Setting up virtualenv..." + rm -rf .venv python3 -m venv .venv - .venv/bin/pip install -q --upgrade pip - .venv/bin/pip install -q -r requirements.txt + .venv/bin/pip install --upgrade pip + .venv/bin/pip install -r requirements.txt fi -mkdir -p data/bots +mkdir -p data/bots static + +# Pre-download the libsimplex native binary so first Start doesn't stall +echo "Checking simplex-chat binary..." +.venv/bin/python -m simplex_chat install 2>/dev/null && echo " simplex binary ready." || echo " Binary not downloaded yet — use the Init button in Settings." # Set token — override via: MANAGER_TOKEN=mysecret ./start.sh export MANAGER_TOKEN="${MANAGER_TOKEN:-changeme}"