Skip to content

Commit c6fc869

Browse files
authored
[FIX] Create nodejs symlink after installing nodejs
1 parent 9dc1be4 commit c6fc869

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

odoo_install.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,7 @@ sudo git clone --depth 1 --branch $OE_VERSION https://www.github.com/odoo/odoo $
112112

113113
if [ $IS_ENTERPRISE = "True" ]; then
114114
# Odoo Enterprise install!
115-
echo -e "\n--- Create symlink for node"
116-
sudo ln -s /usr/bin/nodejs /usr/bin/node
117-
sudo su $OE_USER -c "mkdir $OE_HOME/enterprise"
115+
sudo su $OE_USER -c "mkdir $OE_HOME/enterprise"
118116
sudo su $OE_USER -c "mkdir $OE_HOME/enterprise/addons"
119117

120118
echo -e "\n---- Adding Enterprise code under $OE_HOME/enterprise/addons ----"
@@ -124,6 +122,9 @@ if [ $IS_ENTERPRISE = "True" ]; then
124122
sudo apt-get install nodejs npm
125123
sudo npm install -g less
126124
sudo npm install -g less-plugin-clean-css
125+
126+
echo -e "\n--- Create symlink for node"
127+
sudo ln -s /usr/bin/nodejs /usr/bin/node
127128
else
128129
echo -e "\n---- Create custom module directory ----"
129130
sudo su $OE_USER -c "mkdir $OE_HOME/custom"

0 commit comments

Comments
 (0)