1
0
Fork 0
forked from mirror/prosody
prosody/docker-entrypoint.bash

19 lines
282 B
Bash
Raw Permalink Normal View History

2016-10-18 20:20:59 +00:00
#!/bin/bash
set -e
if [[ "$1" != "prosody" ]]; then
exec prosodyctl $*
exit 0;
fi
if [ "$LOCAL" -a "$PASSWORD" -a "$DOMAIN" ] ; then
prosodyctl register $LOCAL $DOMAIN $PASSWORD
fi
if [ -z "$DOMAIN" ]; then
echo "[ERROR] DOMAIN must be set!"
exit 1
fi
2020-06-01 05:25:31 +00:00
exec "$@"