forked from kimbl/bigbluebutton
22 lines
605 B
Bash
22 lines
605 B
Bash
#!/bin/sh
|
|
|
|
# set ETHERPAD_API_KEY variable
|
|
if test -f "/run/secrets/etherpad_api_key"; then
|
|
pwd=$(cat /run/secrets/etherpad_api_key)
|
|
if [ -z $pwd ]; then
|
|
echo >&2 "error: /run/secrets/etherpad_api_key is empty"
|
|
exit 1
|
|
fi
|
|
echo "entrypoint.etherpad.sh setting ETHERPAD_API_KEY"
|
|
export "ETHERPAD_API_KEY"="${pwd}"
|
|
unset "pwd"
|
|
else
|
|
echo >&2 "error: /run/secrets/etherpad_api_key does not exist"
|
|
exit 1
|
|
fi
|
|
|
|
echo $ETHERPAD_API_KEY > /tmp/apikey
|
|
export NODE_ENV=production
|
|
|
|
node /opt/etherpad-lite/node_modules/ep_etherpad-lite/node/server.js --apikey /tmp/apikey
|