From 14cbba17f3001a8a6be8f32a9ffe206d9cf7c9de Mon Sep 17 00:00:00 2001 From: Michel Roegl-Brunner <73236783+michelroegl-brunner@users.noreply.github.com> Date: Fri, 10 Jan 2025 13:04:40 +0100 Subject: [PATCH] Fix bookstack.sh: Ignore empty folder (#1388) --- ct/bookstack.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ct/bookstack.sh b/ct/bookstack.sh index 0589d2dc..6b5f5c87 100644 --- a/ct/bookstack.sh +++ b/ct/bookstack.sh @@ -44,9 +44,9 @@ function update_script() { unzip -q /opt/v${RELEASE}.zip -d /opt mv /opt/BookStack-${RELEASE} /opt/bookstack cp /opt/bookstack-backup/.env /opt/bookstack/.env - cp -r /opt/bookstack-backup/public/uploads/* /opt/bookstack/public/uploads/ - cp -r /opt/bookstack-backup/storage/uploads/* /opt/bookstack/storage/uploads/ - cp -r /opt/bookstack-backup/themes/* /opt/bookstack/themes/ + cp -r /opt/bookstack-backup/public/uploads/* /opt/bookstack/public/uploads/ 2>/dev/null || true + cp -r /opt/bookstack-backup/storage/uploads/* /opt/bookstack/storage/uploads/ 2>/dev/null || true + cp -r /opt/bookstack-backup/themes/* /opt/bookstack/themes/ 2>/dev/null || true cd /opt/bookstack COMPOSER_ALLOW_SUPERUSER=1 composer install --no-dev &>/dev/null php artisan migrate --force &>/dev/null