1
0
Fork 0
forked from mirror/prosody
prosody/docker-entrypoint.sh
2016-10-18 20:20:59 +00:00

13 lines
No EOL
205 B
Bash
Executable file

#!/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
exec "$@"