From 4279e265702903258bc51c3c3cbc0933b9f2632b Mon Sep 17 00:00:00 2001 From: Temur Vibliani Date: Wed, 23 Sep 2015 18:01:07 +0400 Subject: [PATCH] [FIX] replaced integer overflow test with getconf - Integer overflow test does not worked properly and is not reliable indicator of host architecture, it replaced with "getconf LONG_BIT" that was tested and worked properly on Ubuntu 14.04. now wkhtml2pdf downloads are correctly adapted to x64 and x32 hosts. --- V9/odoo_install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/V9/odoo_install.sh b/V9/odoo_install.sh index 2de10ad..a525f8f 100644 --- a/V9/odoo_install.sh +++ b/V9/odoo_install.sh @@ -86,7 +86,7 @@ sudo apt-get install python-gevent -y if [ $INSTALL_WKHTMLTOPDF = "True" ]; then echo -e "\n---- Install wkhtml and place shortcuts on correct place for ODOO 9 ----" #pick up correct one from x64 & x32 versions: - if ((1<<32));then + if [ "`getconf LONG_BIT`" == "64" ];then _url=$WKHTMLTOX_X64 else _url=$WKHTMLTOX_X32