Update entrypoint.sh

no_root
This commit is contained in:
simonmcnair 2025-03-10 20:22:09 +00:00 committed by GitHub
parent b336cbc064
commit 40e1e818be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,7 +6,7 @@ mkdir -vp /data/config/comfy/custom_nodes
declare -A MOUNTS
MOUNTS["/root/.cache"]="/data/.cache"
MOUNTS["${USER_HOME}/.cache"]="/data/.cache"
MOUNTS["${ROOT}/input"]="/data/config/comfy/input"
MOUNTS["${ROOT}/output"]="/output/comfy"
@ -28,4 +28,9 @@ if [ -f "/data/config/comfy/startup.sh" ]; then
popd
fi
chown -R root ~/.cache/
chmod 766 ~/.cache/
chown -R $PUID:$PGID ~/.cache/
chmod 776 ~/.cache/
exec "$@"