Odoo: update PDFKiln on each release, and replace wkhtmltox too (#19035)

This commit is contained in:
Jamal Tantaoui authored and GitHub committed 2026-11-25 14:13:20 +01:00
1 parent 1fc49d021c
commit 44a396c131
1 file changed
+7 -1
+7 -1
View File
@@ -38,8 +38,14 @@ function update_script() {
fi
if dpkg -s wkhtmltopdf &>/dev/null; then
systemctl stop odoo
$STD apt remove --purge -y wkhtmltopdf
fi
if dpkg -s wkhtmltox &>/dev/null; then
$STD apt remove --purge -y wkhtmltox
fi
if [[ ! -f ~/.pdfkiln ]] || check_for_gh_release "pdfkiln" "pdfkiln/pdfkiln"; then
systemctl stop odoo
fetch_and_deploy_gh_release "pdfkiln" "pdfkiln/pdfkiln" "binary" "latest" "" "pdfkiln_*_$(arch_resolve).deb"
systemctl start odoo
fi