From 9c7858601e98e72aa995b5e13973d060e2b0f4b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slavi=C5=A1a=20Are=C5=BEina?= <58952836+tremor021@users.noreply.github.com> Date: Thu, 3 Apr 2025 07:43:35 +0200 Subject: [PATCH] BookStack: Fix path to downloaded release file (#3627) --- ct/bookstack.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ct/bookstack.sh b/ct/bookstack.sh index f7e27e951..7e0afd847 100644 --- a/ct/bookstack.sh +++ b/ct/bookstack.sh @@ -36,13 +36,13 @@ function update_script() { msg_info "Updating ${APP} to v${RELEASE}" mv /opt/bookstack /opt/bookstack-backup curl -fsSL "https://github.com/BookStackApp/BookStack/archive/refs/tags/v${RELEASE}.zip" -o "/opt/BookStack-${RELEASE}.zip" - unzip -q /opt/v${RELEASE}.zip -d /opt - mv /opt/BookStack-${RELEASE} /opt/bookstack + unzip -q "/opt/BookStack-${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/ || true cp -r /opt/bookstack-backup/storage/uploads/* /opt/bookstack/storage/uploads/ || true cp -r /opt/bookstack-backup/themes/* /opt/bookstack/themes/ || true - cd /opt/bookstack + cd /opt/bookstack || exit export COMPOSER_ALLOW_SUPERUSER=1 $STD composer install --no-dev $STD php artisan migrate --force @@ -59,7 +59,7 @@ function update_script() { msg_info "Cleaning Up" rm -rf /opt/bookstack-backup - rm -rf /opt/v${RELEASE}.zip + rm -rf "/opt/BookStack-${RELEASE}.zip" msg_ok "Cleaned" msg_ok "Updated Successfully" else