Skip to content

Commit 9c78586

Browse files
authored
BookStack: Fix path to downloaded release file (#3627)
1 parent ce3ed8a commit 9c78586

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ct/bookstack.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ function update_script() {
3636
msg_info "Updating ${APP} to v${RELEASE}"
3737
mv /opt/bookstack /opt/bookstack-backup
3838
curl -fsSL "https://github.com/BookStackApp/BookStack/archive/refs/tags/v${RELEASE}.zip" -o "/opt/BookStack-${RELEASE}.zip"
39-
unzip -q /opt/v${RELEASE}.zip -d /opt
40-
mv /opt/BookStack-${RELEASE} /opt/bookstack
39+
unzip -q "/opt/BookStack-${RELEASE}.zip" -d /opt
40+
mv "/opt/BookStack-${RELEASE}" /opt/bookstack
4141
cp /opt/bookstack-backup/.env /opt/bookstack/.env
4242
cp -r /opt/bookstack-backup/public/uploads/* /opt/bookstack/public/uploads/ || true
4343
cp -r /opt/bookstack-backup/storage/uploads/* /opt/bookstack/storage/uploads/ || true
4444
cp -r /opt/bookstack-backup/themes/* /opt/bookstack/themes/ || true
45-
cd /opt/bookstack
45+
cd /opt/bookstack || exit
4646
export COMPOSER_ALLOW_SUPERUSER=1
4747
$STD composer install --no-dev
4848
$STD php artisan migrate --force
@@ -59,7 +59,7 @@ function update_script() {
5959

6060
msg_info "Cleaning Up"
6161
rm -rf /opt/bookstack-backup
62-
rm -rf /opt/v${RELEASE}.zip
62+
rm -rf "/opt/BookStack-${RELEASE}.zip"
6363
msg_ok "Cleaned"
6464
msg_ok "Updated Successfully"
6565
else

0 commit comments

Comments
 (0)