From 66846377a6747332ebab066b87a65f95419993b0 Mon Sep 17 00:00:00 2001 From: AbdBarho Date: Wed, 18 Jan 2023 18:50:56 +0100 Subject: [PATCH] Mount scripts instead of copy (#298) Refs #295 --- services/AUTOMATIC1111/entrypoint.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/services/AUTOMATIC1111/entrypoint.sh b/services/AUTOMATIC1111/entrypoint.sh index a5c2e5b..6ef5b21 100755 --- a/services/AUTOMATIC1111/entrypoint.sh +++ b/services/AUTOMATIC1111/entrypoint.sh @@ -2,6 +2,8 @@ set -Eeuo pipefail +# mount scripts individually +cp -vrTs /data/config/auto/scripts/ "${ROOT}/scripts/" # TODO: move all mkdir -p ? mkdir -p /data/config/auto/scripts/ 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 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 MOUNTS["/root/.cache"]="/data/.cache"