Fix fastRun.sh

I copied the run.sh, remove the dependency check
This commit is contained in:
Sebastian Castro 2020-09-08 09:53:28 +02:00
parent da459888dc
commit 9122e5f7e7
No known key found for this signature in database
GPG key ID: 1529B5349211A859

View file

@ -7,16 +7,17 @@
# of what to do, please execute bin/installDeps.sh once before running this
# script.
set -eu
pecho() { printf %s\\n "$*"; }
log() { pecho "$@"; }
error() { log "ERROR: $@" >&2; }
fatal() { error "$@"; exit 1; }
# source: https://stackoverflow.com/questions/59895/how-to-get-the-source-directory-of-a-bash-script-from-within-the-script-itself#246128
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
# Move to the folder where ep-lite is installed
cd "$(dirname "$0")"/..
echo "Running directly, without checking/installing dependencies"
# move to the base Etherpad directory. This will be necessary until Etherpad
# learns to run from arbitrary CWDs.
cd "${DIR}/.."
# Move to the node folder and start
log "Starting Etherpad..."
# run Etherpad main class
node "${DIR}/../node_modules/ep_etherpad-lite/node/server.js" "${@}"
SCRIPTPATH=$(pwd -P)
exec node "$SCRIPTPATH/node_modules/ep_etherpad-lite/node/server.js" "$@"