mirror of
https://github.com/AbdBarho/stable-diffusion-webui-docker.git
synced 2025-10-28 00:34:34 -04:00
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
set -Eeuo pipefail
|
set -Eeuo pipefail
|
||||||
|
|
||||||
|
# mount scripts individually
|
||||||
|
cp -vrTs /data/config/auto/scripts/ "${ROOT}/scripts/"
|
||||||
# TODO: move all mkdir -p ?
|
# TODO: move all mkdir -p ?
|
||||||
mkdir -p /data/config/auto/scripts/
|
mkdir -p /data/config/auto/scripts/
|
||||||
cp -n /docker/config.json /data/config/auto/config.json
|
cp -n /docker/config.json /data/config/auto/config.json
|
||||||
@@ -11,9 +13,6 @@ if [ ! -f /data/config/auto/ui-config.json ]; then
|
|||||||
echo '{}' >/data/config/auto/ui-config.json
|
echo '{}' >/data/config/auto/ui-config.json
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# copy scripts, we cannot just mount the directory because it will override the already provided scripts in the repo
|
|
||||||
cp -rfT /data/config/auto/scripts/ "${ROOT}/scripts"
|
|
||||||
|
|
||||||
declare -A MOUNTS
|
declare -A MOUNTS
|
||||||
|
|
||||||
MOUNTS["/root/.cache"]="/data/.cache"
|
MOUNTS["/root/.cache"]="/data/.cache"
|
||||||
|
|||||||
Reference in New Issue
Block a user