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.
|
|
|
|
|
|
|
|
set -eu
|
|
|
|
|
2021-02-05 00:43:27 +01:00
|
|
|
# Move to the Etherpad base directory.
|
|
|
|
MY_DIR=$(cd "${0%/*}" && pwd -P) || exit 1
|
2024-02-21 21:50:11 +01:00
|
|
|
cd "${MY_DIR}/.." || exit 1
|
2020-04-17 18:36:24 +02:00
|
|
|
|
2021-02-03 00:30:07 +01:00
|
|
|
# Source constants and useful functions
|
2024-02-21 21:50:11 +01:00
|
|
|
. bin/functions.sh
|
2020-10-06 14:28:11 +02:00
|
|
|
|
2020-04-17 18:36:24 +02:00
|
|
|
echo "Running directly, without checking/installing dependencies"
|
|
|
|
|
|
|
|
# run Etherpad main class
|
2024-02-17 16:21:16 +01:00
|
|
|
exec node --import tsx src/node/server.ts "$@"
|