Skip to content

Commit

Permalink
entrypoint.sh: If a command is passed to the image, run prosodyctl in…
Browse files Browse the repository at this point in the history
…stead
  • Loading branch information
mwild1 committed Feb 4, 2016
1 parent bed0d8e commit 8bbb02e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 8bbb02e

Please sign in to comment.