Change in the project directory before starting server.js, solves a problem with npm
This commit is contained in:
parent
8233d6381b
commit
b4ca337020
|
@ -1,5 +1,10 @@
|
||||||
#!/bin/bash
|
#!/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
|
if [[ $EUID -eq 0 ]]; then
|
||||||
echo "You shouldn't start Etherpad-Lite as root!" 1>&2
|
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
|
echo "Use authbind if you want to use a port lower than 1024 -> http://en.wikipedia.org/wiki/Authbind" 1>&2
|
||||||
|
|
Loading…
Reference in New Issue