Using parent directory creation more often

pull/133/head
J. Canseco 7 years ago committed by GitHub
parent 6e2e54b487
commit eabda22a41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -112,8 +112,7 @@ if [ $IS_ENTERPRISE = "True" ]; then
# Odoo Enterprise install! # Odoo Enterprise install!
echo -e "\n--- Create symlink for node" echo -e "\n--- Create symlink for node"
sudo ln -s /usr/bin/nodejs /usr/bin/node sudo ln -s /usr/bin/nodejs /usr/bin/node
sudo su $OE_USER -c "mkdir $OE_HOME/enterprise" sudo su $OE_USER -c "mkdir -p $OE_HOME/enterprise/addons"
sudo su $OE_USER -c "mkdir $OE_HOME/enterprise/addons"
GITHUB_RESPONSE=$(sudo git clone --depth 1 --branch 10.0 https://www.github.com/odoo/enterprise "$OE_HOME/enterprise/addons" 2>&1) GITHUB_RESPONSE=$(sudo git clone --depth 1 --branch 10.0 https://www.github.com/odoo/enterprise "$OE_HOME/enterprise/addons" 2>&1)
while [[ $GITHUB_RESPONSE == *"Authentication"* ]]; do while [[ $GITHUB_RESPONSE == *"Authentication"* ]]; do
@ -135,8 +134,7 @@ if [ $IS_ENTERPRISE = "True" ]; then
fi fi
echo -e "\n---- Create custom module directory ----" echo -e "\n---- Create custom module directory ----"
sudo su $OE_USER -c "mkdir $OE_HOME/custom" sudo su $OE_USER -c "mkdir -p $OE_HOME/custom/addons"
sudo su $OE_USER -c "mkdir $OE_HOME/custom/addons"
echo -e "\n---- Setting permissions on home folder ----" echo -e "\n---- Setting permissions on home folder ----"
sudo chown -R $OE_USER:$OE_USER $OE_HOME/* sudo chown -R $OE_USER:$OE_USER $OE_HOME/*

Loading…
Cancel
Save