From e2aa5fe6278342263089f6b96c33f720e7c6a92e Mon Sep 17 00:00:00 2001 From: Michel Roegl-Brunner <73236783+michelroegl-brunner@users.noreply.github.com> Date: Fri, 6 Dec 2024 21:10:40 +0100 Subject: [PATCH] Bookstack: Fix Update function composer (#700) * Changed Update function to fix a fail * Changed back --- ct/bookstack.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ct/bookstack.sh b/ct/bookstack.sh index 0d52f390..09e623a7 100644 --- a/ct/bookstack.sh +++ b/ct/bookstack.sh @@ -70,9 +70,10 @@ if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_v unzip -q v${RELEASE}.zip mv BookStack-${RELEASE} /opt/bookstack mv /opt/.env /opt/bookstack/.env + cd /opt/bookstack COMPOSER_ALLOW_SUPERUSER=1 composer install --no-dev &>/dev/null - php artisan key:generate &>/dev/null - php artisan migrate &>/dev/null + php artisan key:generate --force &>/dev/null + php artisan migrate --force &>/dev/null echo "${RELEASE}" >/opt/${APP}_version.txt msg_ok "Updated ${APP}"