mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-27 19:06:15 -04:00
Fix fastRun.sh
I copied the run.sh, remove the dependency check
This commit is contained in:
parent
da459888dc
commit
9122e5f7e7
1 changed files with 10 additions and 9 deletions
|
@ -7,16 +7,17 @@
|
||||||
# of what to do, please execute bin/installDeps.sh once before running this
|
# of what to do, please execute bin/installDeps.sh once before running this
|
||||||
# script.
|
# 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
|
# Move to the folder where ep-lite is installed
|
||||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
|
cd "$(dirname "$0")"/..
|
||||||
|
|
||||||
echo "Running directly, without checking/installing dependencies"
|
|
||||||
|
|
||||||
# move to the base Etherpad directory. This will be necessary until Etherpad
|
# Move to the node folder and start
|
||||||
# learns to run from arbitrary CWDs.
|
log "Starting Etherpad..."
|
||||||
cd "${DIR}/.."
|
|
||||||
|
|
||||||
# run Etherpad main class
|
SCRIPTPATH=$(pwd -P)
|
||||||
node "${DIR}/../node_modules/ep_etherpad-lite/node/server.js" "${@}"
|
exec node "$SCRIPTPATH/node_modules/ep_etherpad-lite/node/server.js" "$@"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue