From 42d8fbe44088dd48e44fea4424d2df1f4d782cf4 Mon Sep 17 00:00:00 2001 From: Yenthe Date: Wed, 23 Sep 2015 16:46:56 +0200 Subject: [PATCH] Test Temur Test Temur --- development/odoo_install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/development/odoo_install.sh b/development/odoo_install.sh index 89bbd78..61bf4d1 100644 --- a/development/odoo_install.sh +++ b/development/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 @@ -115,8 +115,8 @@ echo -e "\n==== Installing ODOO Server ====" sudo git clone --branch $OE_VERSION https://www.github.com/odoo/odoo $OE_HOME_EXT/ echo -e "\n---- Create custom module directory ----" -mkdir -p $OE_HOME/custom/addons -chown $OE_USER:$OE_USER $OE_HOME/custom/addons +sudo su $OE_USER -c "mkdir $OE_HOME/custom" +sudo su $OE_USER -c "mkdir $OE_HOME/custom/addons" echo -e "\n---- Setting permissions on home folder ----" sudo chown -R $OE_USER:$OE_USER $OE_HOME/*