tc-prosody/build/docker-entrypoint.sh

15 lines
251 B
Bash
Raw Permalink Normal View History

2024-11-17 15:54:35 -05:00
#!/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 "$@"