From 79a43028cfaec133e495bcac485554573c025a7d Mon Sep 17 00:00:00 2001 From: Jamal Tantaoui <60345746+Jamalofski@users.noreply.github.com> Date: Wed, 25 Nov 2026 13:01:04 +0100 Subject: [PATCH] ERPNext: install PDFKiln instead of the archived wkhtmltox build (#19025) * ERPNext: install PDFKiln instead of the archived wkhtmltox build * ERPNext: replace wkhtmltox with PDFKiln on update too * ERPNext: purge wkhtmltox and update PDFKiln as separate steps --- ct/erpnext.sh | 8 ++++++++ install/erpnext-install.sh | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ct/erpnext.sh b/ct/erpnext.sh index 40c6fd083..ad8231088 100644 --- a/ct/erpnext.sh +++ b/ct/erpnext.sh @@ -41,6 +41,14 @@ function update_script() { $STD supervisorctl stop all msg_ok "Stopped ERPNext service" + if dpkg -s wkhtmltox &>/dev/null; then + $STD apt remove --purge -y wkhtmltox + fi + + if check_for_gh_release "pdfkiln" "pdfkiln/pdfkiln"; then + fetch_and_deploy_gh_release "pdfkiln" "pdfkiln/pdfkiln" "binary" "latest" "" "pdfkiln_*_$(arch_resolve).deb" + fi + if [[ "${FRAPPE_MAJOR:-0}" -lt 16 ]] && { [[ "${PHS_SILENT:-0}" == "1" ]] || whiptail --backtitle "Proxmox VE Helper Scripts" --title "ERPNext v16 Major Upgrade" \ --yesno "A major upgrade from Frappe/ERPNext v15 to v16 is available.\n\nUpgrade to v16 now?" 16 78; }; then diff --git a/install/erpnext-install.sh b/install/erpnext-install.sh index 14e42a151..975520ffd 100644 --- a/install/erpnext-install.sh +++ b/install/erpnext-install.sh @@ -51,7 +51,7 @@ EOF $STD systemctl restart mariadb msg_ok "Configured MariaDB for ERPNext" -fetch_and_deploy_gh_release "wkhtmltopdf" "wkhtmltopdf/packaging" "binary" "latest" "" "wkhtmltox_*.bookworm_$(arch_resolve).deb" +fetch_and_deploy_gh_release "pdfkiln" "pdfkiln/pdfkiln" "binary" "latest" "" "pdfkiln_*_$(arch_resolve).deb" msg_info "Installing Frappe Bench" useradd -m -s /bin/bash frappe