mirror of
https://github.com/SaraSmiseth/prosody.git
synced 2025-04-19 16:01:14 +00:00
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 "$@"
|