From 53125f4e08e0403840bc24d80fe8e5ed16612ed0 Mon Sep 17 00:00:00 2001 From: Owen Voke Date: Tue, 22 Sep 2026 09:59:09 +0100 Subject: [PATCH] fix(invoiceshelf): re-link storage during update (#17431) The update script doesn't run `php artisan storage:link`, so the symlink at `public/storage` is left pointing at the old release path after an update. As a result, uploaded images 404 in the frontend until the link is recreated by hand. This change runs `storage:link` after the release is swapped in, to ensure that the storage path is symlinked correctly. --- ct/invoiceshelf.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/ct/invoiceshelf.sh b/ct/invoiceshelf.sh index 0aefe49bb..3d4e4df20 100644 --- a/ct/invoiceshelf.sh +++ b/ct/invoiceshelf.sh @@ -54,6 +54,7 @@ function update_script() { $STD pnpm run build fi $STD php artisan migrate --force + $STD php artisan storage:link $STD php artisan optimize:clear chown -R www-data:www-data /opt/invoiceshelf msg_ok "Updated Application"