mirror of
https://github.com/AbdBarho/stable-diffusion-webui-docker.git
synced 2026-04-10 00:44:01 +00:00
Update entrypoint.sh
remove root user
This commit is contained in:
parent
cc08ed6a10
commit
b52f5c6f4b
1 changed files with 3 additions and 3 deletions
|
|
@ -31,7 +31,8 @@ rsync --info=NAME ${ROOT}/models/karlo/ /data/models/karlo/
|
||||||
|
|
||||||
declare -A MOUNTS
|
declare -A MOUNTS
|
||||||
|
|
||||||
MOUNTS["/root/.cache"]="/data/.cache"
|
#MOUNTS["/root/.cache"]="/data/.cache"
|
||||||
|
MOUNTS["${USER_HOME}/.cache"]="/data/.cache"
|
||||||
MOUNTS["${ROOT}/models"]="/data/models"
|
MOUNTS["${ROOT}/models"]="/data/models"
|
||||||
|
|
||||||
MOUNTS["${ROOT}/embeddings"]="/data/embeddings"
|
MOUNTS["${ROOT}/embeddings"]="/data/embeddings"
|
||||||
|
|
@ -58,8 +59,7 @@ done
|
||||||
|
|
||||||
echo "Installing extension dependencies (if any)"
|
echo "Installing extension dependencies (if any)"
|
||||||
|
|
||||||
# because we build our container as root:
|
chown -R $PUID:$PGID ~/.cache/
|
||||||
chown -R root ~/.cache/
|
|
||||||
chmod 766 ~/.cache/
|
chmod 766 ~/.cache/
|
||||||
|
|
||||||
shopt -s nullglob
|
shopt -s nullglob
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue