From c524114cc08e0c37dc9feb6fde5bcdc9488c016e Mon Sep 17 00:00:00 2001 From: Yenthe Date: Wed, 23 Sep 2015 13:16:57 +0200 Subject: [PATCH] No sudo on folder creation No sudo on folder creation --- development/odoo_install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/development/odoo_install.sh b/development/odoo_install.sh index 8e83013..89bbd78 100644 --- a/development/odoo_install.sh +++ b/development/odoo_install.sh @@ -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 ----" -sudo su $OE_USER -c "mkdir $OE_HOME/custom" -sudo su $OE_USER -c "mkdir $OE_HOME/custom/addons" +mkdir -p $OE_HOME/custom/addons +chown $OE_USER:$OE_USER $OE_HOME/custom/addons echo -e "\n---- Setting permissions on home folder ----" sudo chown -R $OE_USER:$OE_USER $OE_HOME/*