runtime/build_node.sh

15 lines
264 B
Bash
Raw Permalink Normal View History

2020-02-02 21:06:11 +00:00
#!/bin/bash
set -e
mkdir -p /opt/techs
VERSION=$1
cd /usr/src
wget http://nodejs.org/dist/v$VERSION/node-v$VERSION-linux-x64.tar.gz
tar xf node-v$VERSION-linux-x64.tar.gz
mv node-v$VERSION-linux-x64 /opt/techs/node-$VERSION
rm node-v$VERSION-linux-x64.tar.gz