Bookstack: Fix Update function composer (#700)

* Changed Update function to fix a fail

* Changed back
This commit is contained in:
Michel Roegl-Brunner 2024-12-06 21:10:40 +01:00 committed by GitHub
parent 493c2c931c
commit e2aa5fe627
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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}"