From b4ca337020295d76a5a16055669ce85b56038074 Mon Sep 17 00:00:00 2001 From: Peter 'Pita' Martischka Date: Fri, 13 May 2011 15:52:07 +0100 Subject: [PATCH] Change in the project directory before starting server.js, solves a problem with npm --- bin/run.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/run.sh b/bin/run.sh index 2c42de8e9..6d6825b73 100755 --- a/bin/run.sh +++ b/bin/run.sh @@ -1,5 +1,10 @@ #!/bin/bash +#Move to the folder where ep-lite is installed +FOLDER=$(dirname $(readlink -f $0)) +cd $FOLDER +echo $FOLDER + if [[ $EUID -eq 0 ]]; then echo "You shouldn't start Etherpad-Lite as root!" 1>&2 echo "Use authbind if you want to use a port lower than 1024 -> http://en.wikipedia.org/wiki/Authbind" 1>&2