runtime/build_node.sh
2020-02-02 22:06:11 +01:00

15 lines
264 B
Bash
Executable File

#!/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