Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdBarho authored Jan 25, 2023
1 parent 00518a0 commit 95e489a
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions services/AUTOMATIC1111/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ MOUNTS["${ROOT}/models/Lora"]="/data/Lora"
MOUNTS["${ROOT}/embeddings"]="/data/embeddings"
MOUNTS["${ROOT}/config.json"]="/data/config/auto/config.json"
MOUNTS["${ROOT}/ui-config.json"]="/data/config/auto/ui-config.json"
MOUNTS["${ROOT}/extensions"]="/data/config/auto/extensions"

# extra hacks
MOUNTS["${ROOT}/repositories/CodeFormer/weights/facelib"]="/data/.cache"
Expand All @@ -54,22 +55,6 @@ for to_path in "${!MOUNTS[@]}"; do
echo Mounted $(basename "${from_path}")
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
pushd ${ROOT}
. /data/config/auto/startup.sh
Expand Down

0 comments on commit 95e489a

Please sign in to comment.