Commit a3ad8874 authored by Daniel LACROIX's avatar Daniel LACROIX
Browse files

add APIKEY variable

parent a6f60b6d
set -e
# check if needed vars are present
if [ -z "$DB_PASSWORD" ] ; then
if [ -z "$DB_PASSWORD" ] || [ -z "$APIKEY" ] ; then
echo "Error: The following environment variables MUST be defined."
echo " - DB_PASSWORD: database password"
echo " - APIKEY: Etherpad secret API key"
exit 1
# generate setup files
envsubst "$(printf '${%s} ' $REPLACE_VARS)" < /app/settings.json.tmpl > /app/settings.json
echo $APIKEY > /app/APIKEY.txt
node node_modules/ep_etherpad-lite/node/server.js
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment