Skip to content

Commit

Permalink
Mount scripts instead of copy (AbdBarho#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdBarho committed Jan 18, 2023
1 parent c9153fa commit 6684637
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions services/AUTOMATIC1111/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down

0 comments on commit 6684637

Please sign in to comment.