Skip to content

Commit c524114

Browse files
committed
No sudo on folder creation
No sudo on folder creation
1 parent 4563a6d commit c524114

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

development/odoo_install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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-
sudo su $OE_USER -c "mkdir $OE_HOME/custom"
119-
sudo su $OE_USER -c "mkdir $OE_HOME/custom/addons"
118+
mkdir -p $OE_HOME/custom/addons
119+
chown $OE_USER:$OE_USER $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)