mirror of
https://github.com/AbdBarho/stable-diffusion-webui-docker.git
synced 2026-02-03 14:14:18 +01:00
Simplified requirement installing, startup.sh
This commit is contained in:
parent
56826e16c0
commit
cfdac48049
|
|
@ -22,16 +22,16 @@ for to_path in "${!MOUNTS[@]}"; do
|
|||
echo Mounted $(basename "${from_path}")
|
||||
done
|
||||
|
||||
if [ "$(ls -A /stable-diffusion/custom_nodes)" ]; then
|
||||
chmod 777 -R "/stable-diffusion/custom_nodes/"
|
||||
apt-get install build-essential -y
|
||||
for dir in "/stable-diffusion/custom_nodes/*"; do
|
||||
if [ -e "$dir/requirements.txt" ]; then
|
||||
echo $dir
|
||||
cd $dir
|
||||
pip install -r requirements.txt
|
||||
fi
|
||||
done
|
||||
if [ -f "/data/config/comfy/startup.sh" ]; then
|
||||
pushd ${ROOT}
|
||||
. /data/config/comfy/startup.sh
|
||||
popd
|
||||
fi
|
||||
|
||||
shopt -s nullglob
|
||||
list=(${ROOT}/custom_nodes/*/requirements.txt)
|
||||
for req in "${list[@]}"; do
|
||||
pip install -r "$req"
|
||||
done
|
||||
|
||||
exec "$@"
|
||||
|
|
|
|||
Loading…
Reference in a new issue