From 5924872b40ccd51dd75abe57d7d45329fcab1116 Mon Sep 17 00:00:00 2001 From: Carlitos Melgar Date: Sun, 19 Apr 2020 00:20:48 -0400 Subject: [PATCH 1/2] Running with the -H parameter will remove the warning for The directory or its parent directory is not owned by the current user and the cache has been disabled. --- odoo_install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/odoo_install.sh b/odoo_install.sh index ea8819d..0589bb5 100644 --- a/odoo_install.sh +++ b/odoo_install.sh @@ -75,10 +75,10 @@ sudo su - postgres -c "createuser -s $OE_USER" 2> /dev/null || true # Install Dependencies #-------------------------------------------------- echo -e "\n--- Installing Python 3 + pip3 --" -sudo apt-get install git python3 python3-pip build-essential wget python3-dev python3-venv python3-wheel libxslt-dev libzip-dev libldap2-dev libsasl2-dev python3-setuptools node-less libpng12-0 gdebi -y +sudo apt-get install git python3 python3-pip build-essential wget python3-dev python3-venv python3-wheel libxslt-dev libzip-dev libldap2-dev libsasl2-dev python3-setuptools node-less libpng12-0 gdebi-core -y echo -e "\n---- Install python packages/requirements ----" -sudo pip3 install -r https://github.com/odoo/odoo/raw/${OE_VERSION}/requirements.txt +sudo -H pip3 install -r https://github.com/odoo/odoo/raw/${OE_VERSION}/requirements.txt echo -e "\n---- Installing nodeJS NPM and rtlcss for LTR support ----" sudo apt-get install nodejs npm -y @@ -138,7 +138,7 @@ if [ $IS_ENTERPRISE = "True" ]; then echo -e "\n---- Added Enterprise code under $OE_HOME/enterprise/addons ----" echo -e "\n---- Installing Enterprise specific libraries ----" - sudo pip3 install num2words ofxparse dbfread ebaysdk firebase_admin pyOpenSSL + sudo -H pip3 install num2words ofxparse dbfread ebaysdk firebase_admin pyOpenSSL sudo npm install -g less sudo npm install -g less-plugin-clean-css fi From 28c9db1961243ae5b085cff63ad2e9d86e20d2dd Mon Sep 17 00:00:00 2001 From: Yenthe Van Ginneken Date: Tue, 21 Apr 2020 14:13:29 +0200 Subject: [PATCH 2/2] [IMP] odoo_install: remove the dependency change --- odoo_install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odoo_install.sh b/odoo_install.sh index 0589bb5..517a568 100644 --- a/odoo_install.sh +++ b/odoo_install.sh @@ -75,7 +75,7 @@ sudo su - postgres -c "createuser -s $OE_USER" 2> /dev/null || true # Install Dependencies #-------------------------------------------------- echo -e "\n--- Installing Python 3 + pip3 --" -sudo apt-get install git python3 python3-pip build-essential wget python3-dev python3-venv python3-wheel libxslt-dev libzip-dev libldap2-dev libsasl2-dev python3-setuptools node-less libpng12-0 gdebi-core -y +sudo apt-get install git python3 python3-pip build-essential wget python3-dev python3-venv python3-wheel libxslt-dev libzip-dev libldap2-dev libsasl2-dev python3-setuptools node-less libpng12-0 gdebi -y echo -e "\n---- Install python packages/requirements ----" sudo -H pip3 install -r https://github.com/odoo/odoo/raw/${OE_VERSION}/requirements.txt