Update on_sd_start.sh

Added flag to skip starting uvicorn and waiting for keypress if INSTALL_ONLY environment variable is set to 1. This is to support non-interactive installation (e.g. for use in a Dockerfile)
This commit is contained in:
Emrul 2025-03-07 12:57:30 +00:00 committed by GitHub
parent 3a9f71d17a
commit 9e2f1ad482
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -48,8 +48,11 @@ if [ -e "ldm" ]; then mv ldm ldm-old; fi
python -m pip install -q torchruntime python -m pip install -q torchruntime
# Skip the package download and prompt if INSTALL_ONLY=1 is set
if [ "$INSTALL_ONLY" != "1" ]; then
cd .. cd ..
# Download the required packages # Download the required packages
python scripts/check_modules.py --launch-uvicorn python scripts/check_modules.py --launch-uvicorn
read -p "Press any key to continue" read -p "Press any key to continue"
fi