mirror of
https://github.com/AbdBarho/stable-diffusion-webui-docker.git
synced 2025-12-06 07:12:11 +01:00
Update entrypoint.sh
This commit is contained in:
parent
b959dcf21b
commit
eed0ad0738
|
|
@ -28,6 +28,11 @@ if [ -f "/data/config/comfy/startup.sh" ]; then
|
||||||
popd
|
popd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Only chown if not running as root (UID != 0)
|
||||||
|
if [ "$(id -u)" -ne 0 ]; then
|
||||||
|
chown -R "$(id -u):$(id -g)" ~ 2>/dev/null || true
|
||||||
|
fi
|
||||||
|
|
||||||
chown -R $PUID:$PGID ~/.cache/
|
chown -R $PUID:$PGID ~/.cache/
|
||||||
chmod 776 ~/.cache/
|
chmod 776 ~/.cache/
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue