entrypoint.sh: Quote variables [shellcheck]

This commit is contained in:
Kim Alvefur 2019-03-16 19:19:37 +01:00
parent 1fa2fb60ce
commit 8c4170e7d9

View file

@ -2,12 +2,12 @@
set -e
if [[ "$1" != "prosody" ]]; then
exec prosodyctl $*
exec prosodyctl "$@"
exit 0;
fi
if [ "$LOCAL" -a "$PASSWORD" -a "$DOMAIN" ] ; then
prosodyctl register $LOCAL $DOMAIN $PASSWORD
prosodyctl register "$LOCAL" "$DOMAIN" "$PASSWORD"
fi
exec "$@"