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