mirror of
https://github.com/SaraSmiseth/prosody.git
synced 2025-01-18 05:00:36 +00:00
982ddcd60b
* Move multiple defaults from entrypoint script to cfg.lua files. * Move remaining defaults from entrypoint script to cfg.lua files. * Update postgres version in tests * Register users with prosodyctl in tests * Replace 'docker-compose' with 'docker compose'
18 lines
282 B
Bash
Executable file
18 lines
282 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
|
|
|
|
if [ -z "$DOMAIN" ]; then
|
|
echo "[ERROR] DOMAIN must be set!"
|
|
exit 1
|
|
fi
|
|
|
|
exec "$@"
|