Automated install of pip packages for nodes

This commit is contained in:
PassiveLemon 2023-05-07 09:52:08 -04:00 committed by AbdBarho
parent 8fcfda3fd9
commit bde16fc226

View file

@ -22,4 +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 [ -d $dir ]; then
echo $dir
cd $dir
pip install -r requirements.txt
fi
done
fi
exec "$@"