Skip to content

Commit 42d8fbe

Browse files
committed
Test Temur
Test Temur
1 parent 38ab884 commit 42d8fbe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

development/odoo_install.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ sudo apt-get install python-gevent -y
8686
if [ $INSTALL_WKHTMLTOPDF = "True" ]; then
8787
echo -e "\n---- Install wkhtml and place shortcuts on correct place for ODOO 9 ----"
8888
#pick up correct one from x64 & x32 versions:
89-
if ((1<<32));then
89+
if [ "`getconf LONG_BIT`" == "64" ];then
9090
_url=$WKHTMLTOX_X64
9191
else
9292
_url=$WKHTMLTOX_X32
@@ -115,8 +115,8 @@ echo -e "\n==== Installing ODOO Server ===="
115115
sudo git clone --branch $OE_VERSION https://www.github.com/odoo/odoo $OE_HOME_EXT/
116116

117117
echo -e "\n---- Create custom module directory ----"
118-
mkdir -p $OE_HOME/custom/addons
119-
chown $OE_USER:$OE_USER $OE_HOME/custom/addons
118+
sudo su $OE_USER -c "mkdir $OE_HOME/custom"
119+
sudo su $OE_USER -c "mkdir $OE_HOME/custom/addons"
120120

121121
echo -e "\n---- Setting permissions on home folder ----"
122122
sudo chown -R $OE_USER:$OE_USER $OE_HOME/*

0 commit comments

Comments
 (0)