File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -76,11 +76,17 @@ sudo apt-get install python-gevent
76
76
# Install Wkhtmltopdf if needed
77
77
# --------------------------------------------------
78
78
if [ $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
84
90
else
85
91
echo " Wkhtmltopdf isn't installed due to the choice of the user!"
86
92
fi
You can’t perform that action at this time.
0 commit comments