renaming docker nodejs installation script

This commit is contained in:
Simon Martín
2019-02-12 18:13:49 +01:00
parent 450f74b387
commit 6c6ff42879
2 changed files with 3 additions and 4 deletions
+13
View File
@@ -0,0 +1,13 @@
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
if [ -z $NODEJS_VERSION ]; then
NODEJS_VERSION="10"
NODEJS_VERSION_LTS="--lts"
fi
nvm install $NODEJS_VERSION $NODEJS_VERSION_LTS
nvm alias default $NODEJS_VERSION
nvm use default
/etc/init.d/postgresql start