entrypoint.sh: If a command is passed to the image, run prosodyctl instead

This commit is contained in:
Matthew Wild
2016-02-04 19:19:17 +00:00
parent bed0d8e598
commit 8bbb02e228
+5
View File
@@ -1,6 +1,11 @@
#!/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