From e583a2171b94e17e4c1204266c9e113178f7e7a4 Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Fri, 12 Jun 2015 15:58:23 -0400 Subject: [PATCH] Update nodejs template to match current filename Perhaps nodejs.org changed their naming convention recently? --- templates/node_blueprint.sh.erb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/templates/node_blueprint.sh.erb b/templates/node_blueprint.sh.erb index 63fff17a..62262303 100644 --- a/templates/node_blueprint.sh.erb +++ b/templates/node_blueprint.sh.erb @@ -2,11 +2,12 @@ set -e INSTALLATION_DIR=$1 -NODE_DIR=$INSTALLATION_DIR/node-<%= binary_version %>-linux-x64 +BINARY_VERSION=v<%= binary_version %> +NODE_DIR=$INSTALLATION_DIR/node-${BINARY_VERSION}-linux-x64 -curl http://nodejs.org/dist/<%= binary_version %>/node-<%= binary_version %>.tar.gz -s --fail -o - | tar xzf - 2>/dev/null +curl http://nodejs.org/dist/${BINARY_VERSION}/node-${BINARY_VERSION}.tar.gz -s --fail -o - | tar xzf - 2>/dev/null -cd node-<%= binary_version %> +cd node-${BINARY_VERSION} if [[ `lsb_release -r` == *10.04* ]]; then ./configure --shared-openssl-libpath=/lib/ --prefix=/