wkhtml 64bits and 32bits

This commit is contained in:
Jeff 2015-11-14 10:18:09 +01:00
parent 2b1c7a7c2e
commit b1a0552b45

View file

@ -51,8 +51,13 @@ else
sudo apt-get -y -qq install odoo
# Install wkhtmltopdf to print PDF reports
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