Skip to content

Commit

Permalink
Fixed nodejs location
Browse files Browse the repository at this point in the history
  • Loading branch information
Mircea Danila Dumitrescu committed Jun 25, 2014
1 parent 15c3791 commit cedfbb8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cedfbb8

Please sign in to comment.