diff --git a/installers/install-openstudio.sh b/installers/install-openstudio.sh index 0ec1230..a5f7f2f 100644 --- a/installers/install-openstudio.sh +++ b/installers/install-openstudio.sh @@ -7,10 +7,16 @@ dpkg -i OpenStudio-1.3.0.e09fcf487f-Nodejs-Linux.deb sudo apt-get install libgl1-mesa-glx -y sudo apt-get install xvfb -#ADD OPENSTUDIO NODE MODULES TO $PATH +#ADD OPENSTUDIO NODE MODULES TO $PATH FOR YOUR LOGIN export NODE_PATH=/usr/local/lib/openstudio/node PATH=$PATH:/usr/local/lib/openstudio/node -sudo echo “export NODE_PATH=/usr/local/lib/openstudio/node” >> /etc/profile -sudo echo “export PATH=$PATH:$NODE_PATH” >> /etc/profile -sudo echo “export NODE_PATH=/usr/local/lib/openstudio/node” >> /etc/environment -sudo echo “export PATH=$PATH:$NODE_PATH” >> /etc/environment +sudo -s +sudo echo 'export NODE_PATH=/usr/local/lib/openstudio/node' >> /etc/profile +sudo echo 'export PATH=$PATH:$NODE_PATH' >> /etc/profile + +#ADD OPENSTUDIO NODE MODULES TO $PATH FOR ROOT +sudo -i +export NODE_PATH=/usr/local/lib/openstudio/node +PATH=$PATH:/usr/local/lib/openstudio/node +sudo echo 'export NODE_PATH=/usr/local/lib/openstudio/node' >> /etc/environment +sudo echo 'export PATH=$PATH:$NODE_PATH' >> /etc/environment