mirror of
https://github.com/AbdBarho/stable-diffusion-webui-docker.git
synced 2026-02-03 22:24:19 +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}")
|
echo Mounted $(basename "${from_path}")
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ "$(ls -A /stable-diffusion/custom_nodes)" ]; then
|
if [ -f "/data/config/comfy/startup.sh" ]; then
|
||||||
chmod 777 -R "/stable-diffusion/custom_nodes/"
|
pushd ${ROOT}
|
||||||
apt-get install build-essential -y
|
. /data/config/comfy/startup.sh
|
||||||
for dir in "/stable-diffusion/custom_nodes/*"; do
|
popd
|
||||||
if [ -e "$dir/requirements.txt" ]; then
|
|
||||||
echo $dir
|
|
||||||
cd $dir
|
|
||||||
pip install -r requirements.txt
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
shopt -s nullglob
|
||||||
|
list=(${ROOT}/custom_nodes/*/requirements.txt)
|
||||||
|
for req in "${list[@]}"; do
|
||||||
|
pip install -r "$req"
|
||||||
|
done
|
||||||
|
|
||||||
exec "$@"
|
exec "$@"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue