2020-04-17 18:36:24 +02:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# Run Etherpad directly, assuming all the dependencies are already installed.
|
|
|
|
#
|
|
|
|
# Useful for developers, or users that know what they are doing. If you just
|
|
|
|
# upgraded Etherpad version, installed a new dependency, or are simply unsure
|
|
|
|
# of what to do, please execute bin/installDeps.sh once before running this
|
|
|
|
# script.
|
|
|
|
|
2020-09-08 09:53:28 +02:00
|
|
|
pecho() { printf %s\\n "$*"; }
|
|
|
|
log() { pecho "$@"; }
|
|
|
|
error() { log "ERROR: $@" >&2; }
|
|
|
|
fatal() { error "$@"; exit 1; }
|
2020-04-17 18:36:24 +02:00
|
|
|
|
2020-09-08 09:53:28 +02:00
|
|
|
# Move to the folder where ep-lite is installed
|
|
|
|
cd "$(dirname "$0")"/..
|
2020-04-17 18:36:24 +02:00
|
|
|
|
|
|
|
|
2020-09-08 09:53:28 +02:00
|
|
|
# Move to the node folder and start
|
|
|
|
log "Starting Etherpad..."
|
2020-04-17 18:36:24 +02:00
|
|
|
|
2020-09-08 09:53:28 +02:00
|
|
|
SCRIPTPATH=$(pwd -P)
|
|
|
|
exec node "$SCRIPTPATH/node_modules/ep_etherpad-lite/node/server.js" "$@"
|