mirror of
https://github.com/AbdBarho/stable-diffusion-webui-docker.git
synced 2026-04-07 23:43:57 +00:00
Update entrypoint.sh
no_root
This commit is contained in:
parent
b336cbc064
commit
40e1e818be
1 changed files with 6 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ mkdir -vp /data/config/comfy/custom_nodes
|
||||||
|
|
||||||
declare -A MOUNTS
|
declare -A MOUNTS
|
||||||
|
|
||||||
MOUNTS["/root/.cache"]="/data/.cache"
|
MOUNTS["${USER_HOME}/.cache"]="/data/.cache"
|
||||||
MOUNTS["${ROOT}/input"]="/data/config/comfy/input"
|
MOUNTS["${ROOT}/input"]="/data/config/comfy/input"
|
||||||
MOUNTS["${ROOT}/output"]="/output/comfy"
|
MOUNTS["${ROOT}/output"]="/output/comfy"
|
||||||
|
|
||||||
|
|
@ -28,4 +28,9 @@ if [ -f "/data/config/comfy/startup.sh" ]; then
|
||||||
popd
|
popd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
chown -R root ~/.cache/
|
||||||
|
chmod 766 ~/.cache/
|
||||||
|
chown -R $PUID:$PGID ~/.cache/
|
||||||
|
chmod 776 ~/.cache/
|
||||||
|
|
||||||
exec "$@"
|
exec "$@"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue