prosody/docker-entrypoint.sh
Jochen Schalanda c36fc42e9c
Initial commit
2018-02-23 19:01:52 +01:00

14 lines
251 B
Bash
Executable file

#!/bin/bash
set -e
if [[ "$1" != "prosody" ]]; then
exec prosodyctl $*
exit 0;
fi
if [ "$LOCAL" -a "$PASSWORD" -a "$DOMAIN" ] ; then
echo "Creating user ${LOCAL}@${DOMAIN}"
prosodyctl register $LOCAL $DOMAIN $PASSWORD
fi
exec "$@"