From e2473c01f8047c1637371e06b2925c84fedfa096 Mon Sep 17 00:00:00 2001 From: Cas Vissers Date: Fri, 9 Aug 2019 09:55:44 +0200 Subject: [PATCH] [FIX] Save custom & enterprise module in same folder Odoo --- odoo_install.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/odoo_install.sh b/odoo_install.sh index e6a7344..250e222 100644 --- a/odoo_install.sh +++ b/odoo_install.sh @@ -110,10 +110,10 @@ if [ $IS_ENTERPRISE = "True" ]; then # Odoo Enterprise install! echo -e "\n--- Create symlink for 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 $OE_HOME/enterprise/addons" + sudo su $OE_USER -c "mkdir $OE_HOME_EXT/enterprise" + sudo su $OE_USER -c "mkdir $OE_HOME_EXT/enterprise/addons" - GITHUB_RESPONSE=$(sudo git clone --depth 1 --branch $OE_VERSION https://www.github.com/odoo/enterprise "$OE_HOME/enterprise/addons" 2>&1) + GITHUB_RESPONSE=$(sudo git clone --depth 1 --branch $OE_VERSION https://www.github.com/odoo/enterprise "$OE_HOME_EXT/enterprise/addons" 2>&1) while [[ $GITHUB_RESPONSE == *"Authentication"* ]]; do echo "------------------------WARNING------------------------------" echo "Your authentication with Github has failed! Please try again." @@ -121,10 +121,10 @@ if [ $IS_ENTERPRISE = "True" ]; then echo "TIP: Press ctrl+c to stop this script." echo "-------------------------------------------------------------" echo " " - GITHUB_RESPONSE=$(sudo git clone --depth 1 --branch $OE_VERSION https://www.github.com/odoo/enterprise "$OE_HOME/enterprise/addons" 2>&1) + GITHUB_RESPONSE=$(sudo git clone --depth 1 --branch $OE_VERSION https://www.github.com/odoo/enterprise "$OE_HOME_EXT/enterprise/addons" 2>&1) done - echo -e "\n---- Added Enterprise code under $OE_HOME/enterprise/addons ----" + echo -e "\n---- Added Enterprise code under $OE_HOME_EXT/enterprise/addons ----" echo -e "\n---- Installing Enterprise specific libraries ----" sudo pip3 install num2words ofxparse sudo npm install -g less @@ -132,11 +132,11 @@ if [ $IS_ENTERPRISE = "True" ]; then fi 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" +sudo su $OE_USER -c "mkdir $OE_HOME_EXT/custom" +sudo su $OE_USER -c "mkdir $OE_HOME_EXT/custom/addons" 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_EXT/* echo -e "* Create server config file" @@ -147,9 +147,9 @@ sudo su root -c "printf 'admin_passwd = ${OE_SUPERADMIN}\n' >> /etc/${OE_CONFIG} sudo su root -c "printf 'xmlrpc_port = ${OE_PORT}\n' >> /etc/${OE_CONFIG}.conf" sudo su root -c "printf 'logfile = /var/log/${OE_USER}/${OE_CONFIG}.log\n' >> /etc/${OE_CONFIG}.conf" if [ $IS_ENTERPRISE = "True" ]; then - sudo su root -c "printf 'addons_path=${OE_HOME}/enterprise/addons,${OE_HOME_EXT}/addons\n' >> /etc/${OE_CONFIG}.conf" + sudo su root -c "printf 'addons_path=${OE_HOME_EXT}/enterprise/addons,${OE_HOME_EXT}/addons\n' >> /etc/${OE_CONFIG}.conf" else - sudo su root -c "printf 'addons_path=${OE_HOME_EXT}/addons,${OE_HOME}/custom/addons\n' >> /etc/${OE_CONFIG}.conf" + sudo su root -c "printf 'addons_path=${OE_HOME_EXT}/addons,${OE_HOME_EXT}/custom/addons\n' >> /etc/${OE_CONFIG}.conf" fi sudo chown $OE_USER:$OE_USER /etc/${OE_CONFIG}.conf sudo chmod 640 /etc/${OE_CONFIG}.conf