mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2026-11-25 15:18:15 +00:00
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
This commit is contained in:
1 parent
e26c0d1f91
commit
79a43028cf
2 files changed
+9
-1
No files matched your search
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user