From 50cdf693da4d6dc18619263b37c3b4dc75af8bb8 Mon Sep 17 00:00:00 2001 From: David Abutbul Date: Sat, 29 Jan 2022 19:17:16 +0200 Subject: [PATCH] no clobber after additional testing. in case existing files but no config hjson there could be data overwritten due to copy being a big bully will not overwrite any files with -n and should be safe again . --- docker/bin/docker-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/bin/docker-entrypoint.sh b/docker/bin/docker-entrypoint.sh index 1a6c6e3d..3ee86be0 100644 --- a/docker/bin/docker-entrypoint.sh +++ b/docker/bin/docker-entrypoint.sh @@ -11,7 +11,7 @@ if [[ ! -f $bbspath/config/$configname ]]; then for dir in "${prepopvols[@]}" do if [ -n "$(find "$bbspath/$dir" -maxdepth 0 -type d -empty 2>/dev/null)" ]; then - cp -rp $bbsstgp/$dir/* $bbspath/$dir/ + cp -rpn $bbsstgp/$dir/* $bbspath/$dir/ else echo "WARN skipped $bbspath/$dir - vol Not empty/not a new setup - possible bad state" fi