File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -76,11 +76,17 @@ sudo apt-get install python-gevent
7676# Install Wkhtmltopdf if needed
7777# --------------------------------------------------
7878if [ $INSTALL_WKHTMLTOPDF = " True" ]; then
79- echo -e " \n---- Install wkhtml and place on correct place for ODOO 8 ----"
80- sudo wget http://download.gna.org/wkhtmltopdf/0.12/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb
81- sudo dpkg -i wkhtmltox-0.12.1_linux-trusty-amd64.deb
82- sudo cp /usr/local/bin/wkhtmltopdf /usr/bin
83- sudo cp /usr/local/bin/wkhtmltoimage /usr/bin
79+ echo -e " \n---- Install wkhtml and place shortcuts on correct place for ODOO 9 ----"
80+ # pick up correct one from x64 & x32 versions:
81+ if [ " ` getconf LONG_BIT` " == " 64" ]; then
82+ _url=$WKHTMLTOX_X64
83+ else
84+ _url=$WKHTMLTOX_X32
85+ fi
86+ sudo wget $_url
87+ sudo gdebi --n ` basename $_url `
88+ sudo ln -s /usr/local/bin/wkhtmltopdf /usr/bin
89+ sudo ln -s /usr/local/bin/wkhtmltoimage /usr/bin
8490else
8591 echo " Wkhtmltopdf isn't installed due to the choice of the user!"
8692fi
You can’t perform that action at this time.
0 commit comments