Revert "Added Wkhtml x64/x32"

This reverts commit ef91a3da3d.
pull/1/merge
Yenthe 10 years ago
parent 42d8fbe440
commit 14c82a20a6

@ -76,17 +76,11 @@ 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 shortcuts on correct place for ODOO 9 ----" echo -e "\n---- Install wkhtml and place on correct place for ODOO 8 ----"
#pick up correct one from x64 & x32 versions: sudo wget http://download.gna.org/wkhtmltopdf/0.12/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb
if [ "`getconf LONG_BIT`" == "64" ];then sudo dpkg -i wkhtmltox-0.12.1_linux-trusty-amd64.deb
_url=$WKHTMLTOX_X64 sudo cp /usr/local/bin/wkhtmltopdf /usr/bin
else sudo cp /usr/local/bin/wkhtmltoimage /usr/bin
_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