From 745bc6297839c2366216fc6eac8b42bdb5da272b Mon Sep 17 00:00:00 2001 From: MickLesk Date: Tue, 21 Jul 2026 22:58:31 +0200 Subject: [PATCH] Re-download snappdf Chromium after Invoice Ninja updates update_script() redeploys /opt/invoiceninja via CLEAN_INSTALL, which wipes vendor/beganovich/snappdf/versions. That path isn't covered by create_backup/restore_backup, so the Chromium binary snappdf needs for PDF generation was missing after every update, breaking PDFs (#15942). Re-run the same "vendor/bin/snappdf download" step the install script already does, right after the backup is restored. --- ct/invoiceninja.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ct/invoiceninja.sh b/ct/invoiceninja.sh index 34cb88110..23e625741 100644 --- a/ct/invoiceninja.sh +++ b/ct/invoiceninja.sh @@ -41,6 +41,12 @@ function update_script() { restore_backup + msg_info "Downloading Chromium for PDF Generation" + cd /opt/invoiceninja + $STD ./vendor/bin/snappdf download + chown -R www-data:www-data /opt/invoiceninja/vendor/beganovich/snappdf/versions + msg_ok "Downloaded Chromium for PDF Generation" + msg_info "Running Migrations" cd /opt/invoiceninja $STD php artisan migrate --force