Added Wkhtml x64/x32

Added Wkhtml x64/x32
pull/1/merge
Yenthe 10 years ago
parent c524114cc0
commit ef91a3da3d

@ -76,11 +76,17 @@ sudo apt-get install python-gevent
# Install Wkhtmltopdf if needed # Install Wkhtmltopdf if needed
#-------------------------------------------------- #--------------------------------------------------
if [ $INSTALL_WKHTMLTOPDF = "True" ]; then if [ $INSTALL_WKHTMLTOPDF = "True" ]; then
echo -e "\n---- Install wkhtml and place on correct place for ODOO 8 ----" echo -e "\n---- Install wkhtml and place shortcuts on correct place for ODOO 9 ----"
sudo wget http://download.gna.org/wkhtmltopdf/0.12/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb #pick up correct one from x64 & x32 versions:
sudo dpkg -i wkhtmltox-0.12.1_linux-trusty-amd64.deb if [ "`getconf LONG_BIT`" == "64" ];then
sudo cp /usr/local/bin/wkhtmltopdf /usr/bin _url=$WKHTMLTOX_X64
sudo cp /usr/local/bin/wkhtmltoimage /usr/bin else
_url=$WKHTMLTOX_X32
fi
sudo wget $_url
sudo gdebi --n `basename $_url`
sudo ln -s /usr/local/bin/wkhtmltopdf /usr/bin
sudo ln -s /usr/local/bin/wkhtmltoimage /usr/bin
else else
echo "Wkhtmltopdf isn't installed due to the choice of the user!" echo "Wkhtmltopdf isn't installed due to the choice of the user!"
fi fi

Loading…
Cancel
Save