|
|
@ -0,0 +1,21 @@ |
|
|
|
#!/usr/bin/env bash |
|
|
|
|
|
|
|
# Detect POSIX Environment |
|
|
|
os=`uname -s | tr '[:upper:]' '[:lower:]'` |
|
|
|
arch=`uname -m | sed -r 's/x86_64/x64/'` |
|
|
|
#echo $os |
|
|
|
#echo $arch |
|
|
|
|
|
|
|
rundir=`echo $0 |sed -r 's/\/start-server\.sh$//'` |
|
|
|
#echo $rundir |
|
|
|
|
|
|
|
node_ver='v14.17.0' |
|
|
|
node_path="$rundir/nodejs/node-$node_ver-$os-$arch/bin/node" |
|
|
|
echo $node_path |
|
|
|
|
|
|
|
if [ -x "$node_path" ]; then |
|
|
|
$node_path --version |
|
|
|
else |
|
|
|
echo "ERROR: Missing Node.JS: $node_path" |
|
|
|
exit 1 |
|
|
|
fi |