From 3f0f9d957dc317218a4006af92affd4467c99f3e Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Mon, 25 Nov 2024 21:16:01 +0100 Subject: [PATCH] fine grain structure copy --- docker-entrypoint.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 2925a5b..9d8c7a9 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -21,7 +21,16 @@ function version { echo "$@" | awk -F. '{ printf("%d%03d%03d%03d\n", $1,$2,$3,$4 # Update Docker structure echo >&2 "Updating Docker structure..." -cp -Ru /var/lib/dotclear /var/www +mkdir -p /var/www/dotclear/app \ + /var/www/dotclear/blogs \ + /var/www/dotclear/cache \ + /var/www/dotclear/plugins \ + /var/www/dotclear/servers \ + /var/www/dotclear/themes \ + /var/www/dotclear/var +cp -rn /var/lib/dotclear/blogs/* /var/www/dotclear/blogs +cp -r /var/lib/dotclear/plugins/* /var/www/dotclear/plugins +cp -rn /var/lib/dotclear/servers/* /var/www/dotclear/servers # Check if Dotclear is already on system if ! [ -e index.php -a -e src/App.php ]; then @@ -50,7 +59,7 @@ fi # Update Docker structure echo >&2 "Updating Dotclear common themes..." -cp -Ru /var/www/dotclear/app/themes/* /var/www/dotclear/themes +cp -rf /var/www/dotclear/app/themes/* /var/www/dotclear/themes # DEBUG mode for non stable releases if [ "$CNL_DOTCLEAR" == "stable" ]; then