mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2026-11-25 15:18:15 +00:00
Odoo: update PDFKiln on each release, and replace wkhtmltox too (#19035)
This commit is contained in:
1 parent
1fc49d021c
commit
44a396c131
1 file changed
+7
-1
+7
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user