mirror of
				https://github.com/AbdBarho/stable-diffusion-webui-docker.git
				synced 2025-10-31 10:13:28 -04:00 
			
		
		
		
	| @@ -38,7 +38,6 @@ 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" | ||||||
| @@ -55,6 +54,21 @@ for to_path in "${!MOUNTS[@]}"; do | |||||||
|   echo Mounted $(basename "${from_path}") |   echo Mounted $(basename "${from_path}") | ||||||
| done | done | ||||||
|  |  | ||||||
|  | sync_bidirectional() { | ||||||
|  |   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