Initial commit

This commit is contained in:
Jochen Schalanda 2018-02-23 19:01:52 +01:00
commit c36fc42e9c
No known key found for this signature in database
GPG key ID: 2FC1B61A8D1F4BB0
6 changed files with 389 additions and 0 deletions

14
docker-entrypoint.sh Executable file
View file

@ -0,0 +1,14 @@
#!/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 "$@"