From cedfbb8693fc9e3b349097818c3d847c56433708 Mon Sep 17 00:00:00 2001 From: Mircea Danila Dumitrescu Date: Wed, 25 Jun 2014 15:50:47 +0100 Subject: [PATCH] Fixed nodejs location --- start.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/start.sh b/start.sh index 87b7495..e0c27bc 100755 --- a/start.sh +++ b/start.sh @@ -7,9 +7,12 @@ SCRIPTDIR=`pwd`; BINDIR=${SCRIPTDIR}/bin; LOGSDIR=${SCRIPTDIR}/logs; -node=`which node`; +node=`which nodejs`; if [[ -z ${node} ]]; then - node="/usr/local/bin/node"; #fallback + node=`which node`; + if [[ -z ${node} ]]; then + node="/usr/local/bin/node"; #fallback + fi fi if [ ! -f "${node}" ]; then