From cd26105486fe14f8e9955795757320e0af914494 Mon Sep 17 00:00:00 2001 From: Randall Castro Date: Thu, 23 Mar 2017 12:49:19 -0600 Subject: [PATCH] [FIX] - fix order to create symlink for node --- odoo_install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/odoo_install.sh b/odoo_install.sh index 8be9d4a..ba5682e 100644 --- a/odoo_install.sh +++ b/odoo_install.sh @@ -110,8 +110,6 @@ sudo git clone --depth 1 --branch $OE_VERSION https://www.github.com/odoo/odoo $ 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" @@ -122,6 +120,9 @@ if [ $IS_ENTERPRISE = "True" ]; then sudo apt-get install nodejs npm sudo npm install -g less sudo npm install -g less-plugin-clean-css + + echo -e "\n--- Create symlink for node" + sudo ln -s /usr/bin/nodejs /usr/bin/node else echo -e "\n---- Create custom module directory ----" sudo su $OE_USER -c "mkdir $OE_HOME/custom"