Update docker-entrypoint.sh

does not work recursively
This commit is contained in:
David Abutbul 2022-01-29 19:42:37 +02:00 committed by GitHub
parent 50cdf693da
commit 7b2e478ca6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 -rpn $bbsstgp/$dir/* $bbspath/$dir/
cp -rp $bbsstgp/$dir/* $bbspath/$dir/
else
echo "WARN skipped $bbspath/$dir - vol Not empty/not a new setup - possible bad state"
fi