mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-07-22 05:42:53 +02:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user