mirror of
https://git.netzspielplatz.de/docker-multiarch/prosody.git
synced 2025-11-08 17:09:28 +00:00
Initial commit
This commit is contained in:
commit
c36fc42e9c
6 changed files with 389 additions and 0 deletions
14
docker-entrypoint.sh
Executable file
14
docker-entrypoint.sh
Executable 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 "$@"
|
||||
Loading…
Add table
Add a link
Reference in a new issue