mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 14:13:34 +01:00
Improve run.sh
This commit is contained in:
parent
e2ce9dcc02
commit
4b99fec6ae
1 changed files with 11 additions and 11 deletions
22
bin/run.sh
22
bin/run.sh
|
@ -1,15 +1,15 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
#if [[ $EUID -eq 0 ]]; then
|
if [[ $EUID -eq 0 ]]; then
|
||||||
# echo "You shouldn't start LinePad as root!" 1>&2
|
echo "You shouldn't start Etherpad-Lite as root!" 1>&2
|
||||||
# exit 1
|
echo "Use authbind if you want to use a port lower than 1024 -> http://en.wikipedia.org/wiki/Authbind" 1>&2
|
||||||
#fi
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
#if [ ! type -P node &>/dev/null ]; then
|
type -P node &>/dev/null || {
|
||||||
# echo "You have no node installed!" 1>&2
|
echo "You need to install node to run Etherpad-Lite!" >&2
|
||||||
# exit 1
|
exit 1
|
||||||
#fi
|
}
|
||||||
#|| { echo "I require foo but it's not installed. Aborting." >&2; exit 1; }
|
|
||||||
|
|
||||||
cd ../node
|
cd ../node
|
||||||
authbind node server.js
|
node server.js
|
||||||
|
|
Loading…
Reference in a new issue