mirror of
https://github.com/AbdBarho/stable-diffusion-webui-docker.git
synced 2025-10-27 08:14:26 -04:00
@@ -38,6 +38,7 @@ MOUNTS["${ROOT}/models/Lora"]="/data/Lora"
|
|||||||
MOUNTS["${ROOT}/embeddings"]="/data/embeddings"
|
MOUNTS["${ROOT}/embeddings"]="/data/embeddings"
|
||||||
MOUNTS["${ROOT}/config.json"]="/data/config/auto/config.json"
|
MOUNTS["${ROOT}/config.json"]="/data/config/auto/config.json"
|
||||||
MOUNTS["${ROOT}/ui-config.json"]="/data/config/auto/ui-config.json"
|
MOUNTS["${ROOT}/ui-config.json"]="/data/config/auto/ui-config.json"
|
||||||
|
MOUNTS["${ROOT}/extensions"]="/data/config/auto/extensions"
|
||||||
|
|
||||||
# extra hacks
|
# extra hacks
|
||||||
MOUNTS["${ROOT}/repositories/CodeFormer/weights/facelib"]="/data/.cache"
|
MOUNTS["${ROOT}/repositories/CodeFormer/weights/facelib"]="/data/.cache"
|
||||||
@@ -54,22 +55,6 @@ for to_path in "${!MOUNTS[@]}"; do
|
|||||||
echo Mounted $(basename "${from_path}")
|
echo Mounted $(basename "${from_path}")
|
||||||
done
|
done
|
||||||
|
|
||||||
sync_bidirectional() {
|
|
||||||
mkdir -p /data/config/auto/extensions "${ROOT}/extensions"
|
|
||||||
rsync -cau /data/config/auto/extensions/ "${ROOT}/extensions"
|
|
||||||
rsync -cau "${ROOT}/extensions/" /data/config/auto/extensions
|
|
||||||
}
|
|
||||||
sync_extensions() {
|
|
||||||
# I don't have any better ideas:
|
|
||||||
while true; do
|
|
||||||
set -Eeuo pipefail
|
|
||||||
sync_bidirectional
|
|
||||||
sleep 2s
|
|
||||||
done
|
|
||||||
}
|
|
||||||
sync_bidirectional
|
|
||||||
sync_extensions &
|
|
||||||
|
|
||||||
if [ -f "/data/config/auto/startup.sh" ]; then
|
if [ -f "/data/config/auto/startup.sh" ]; then
|
||||||
pushd ${ROOT}
|
pushd ${ROOT}
|
||||||
. /data/config/auto/startup.sh
|
. /data/config/auto/startup.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user