Update to node 6.11.1
Fixes a DDoS issue in node https://nodejs.org/en/blog/vulnerability/july-2017-security-releases/
This commit is contained in:
@@ -34,6 +34,15 @@ while true; do
|
||||
esac
|
||||
done
|
||||
|
||||
echo "==> installer: updating node"
|
||||
if [[ "$(node --version)" != "v6.11.1" ]]; then
|
||||
mkdir -p /usr/local/node-6.11.1
|
||||
$curl -sL https://nodejs.org/dist/v6.11.1/node-v6.11.1-linux-x64.tar.gz | tar zxvf - --strip-components=1 -C /usr/local/node-6.11.1
|
||||
ln -sf /usr/local/node-6.11.1/bin/node /usr/bin/node
|
||||
ln -sf /usr/local/node-6.11.1/bin/npm /usr/bin/npm
|
||||
rm -rf /usr/local/node-6.9.2
|
||||
fi
|
||||
|
||||
for try in `seq 1 10`; do
|
||||
# for reasons unknown, the dtrace package will fail. but rebuilding second time will work
|
||||
|
||||
|
||||
Reference in New Issue
Block a user