mirror of
https://github.com/AbdBarho/stable-diffusion-webui-docker.git
synced 2024-09-11 10:35:57 +03:00
Skipping installation of requirements for disabled extensions (#582)
Closes #563
This commit is contained in:
parent
84740598bc
commit
630980b1bf
@ -29,7 +29,7 @@ services:
|
||||
<<: *base_service
|
||||
profiles: ["auto"]
|
||||
build: ./services/AUTOMATIC1111
|
||||
image: sd-auto:65
|
||||
image: sd-auto:66
|
||||
environment:
|
||||
- CLI_ARGS=--allow-code --medvram --xformers --enable-insecure-extension-access --api
|
||||
|
||||
|
@ -62,6 +62,12 @@ shopt -s nullglob
|
||||
# For install.py, please refer to https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Developing-extensions#installpy
|
||||
list=(./extensions/*/install.py)
|
||||
for installscript in "${list[@]}"; do
|
||||
EXTNAME=`echo $installscript | cut -d '/' -f 3`
|
||||
# Skip installing dependencies if extension is disabled in config
|
||||
if `jq -e ".disabled_extensions|any(. == \"$EXTNAME\")" config.json`; then
|
||||
echo "Skipping disabled extension ($EXTNAME)"
|
||||
continue
|
||||
fi
|
||||
PYTHONPATH=${ROOT} python "$installscript"
|
||||
done
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user