Revert "revert node to 8.15.1"

This reverts commit bec63c1ad0.

ldap: unbind callback never fires in node 10.15 it seems. otherwise,
it all works..
This commit is contained in:
Girish Ramakrishnan
2019-03-23 10:23:19 -07:00
parent cfe9af5c3c
commit ffe30289ee
6 changed files with 65 additions and 45 deletions

View File

@@ -64,12 +64,12 @@ if [[ ! `proftpd --version | grep "1.3.5"` ]]; then
fi
echo "==> installer: updating node"
if [[ "$(node --version)" != "v8.15.1" ]]; then
mkdir -p /usr/local/node-8.15.1
$curl -sL https://nodejs.org/dist/v8.15.1/node-v8.15.1-linux-x64.tar.gz | tar zxvf - --strip-components=1 -C /usr/local/node-8.15.1
ln -sf /usr/local/node-8.15.1/bin/node /usr/bin/node
ln -sf /usr/local/node-8.15.1/bin/npm /usr/bin/npm
rm -rf /usr/local/node-10.15.1
if [[ "$(node --version)" != "v10.15.1" ]]; then
mkdir -p /usr/local/node-10.15.1
$curl -sL https://nodejs.org/dist/v10.15.1/node-v10.15.1-linux-x64.tar.gz | tar zxvf - --strip-components=1 -C /usr/local/node-10.15.1
ln -sf /usr/local/node-10.15.1/bin/node /usr/bin/node
ln -sf /usr/local/node-10.15.1/bin/npm /usr/bin/npm
rm -rf /usr/local/node-8.11.2 /usr/local/node-8.9.3
fi
# this is here (and not in updater.js) because rebuild requires the above node