File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments