From b1a0552b459cebb332b6b4358bf494deef254b6e Mon Sep 17 00:00:00 2001 From: Jeff Date: Sat, 14 Nov 2015 10:18:09 +0100 Subject: [PATCH] wkhtml 64bits and 32bits --- scripts/install | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 53becc3..2efa44f 100644 --- a/scripts/install +++ b/scripts/install @@ -51,8 +51,13 @@ else sudo apt-get -y -qq install odoo # Install wkhtmltopdf to print PDF reports - sudo wget http://download.gna.org/wkhtmltopdf/0.12/0.12.2.1/wkhtmltox-0.12.2.1_linux-jessie-amd64.deb - sudo dpkg -i wkhtmltox-0.12.2.1_linux-jessie-amd64.deb + if [ $(uname -m) == 'x86_64' ]; then + sudo wget http://download.gna.org/wkhtmltopdf/0.12/0.12.2.1/wkhtmltox-0.12.2.1_linux-jessie-amd64.deb + sudo dpkg -i wkhtmltox-0.12.2.1_linux-jessie-amd64.deb + else + sudo wget http://download.gna.org/wkhtmltopdf/0.12/0.12.2.1/wkhtmltox-0.12.2.1_linux-jessie-i386.deb + sudo dpkg -i wkhtmltox-0.12.2.1_linux-jessie-i386.deb + fi sudo cp /usr/local/bin/wkhtmltopdf /usr/bin sudo cp /usr/local/bin/wkhtmltoimage /usr/bin