Merge pull request #56 from Zash/shellcheck

Quote variables in entrypoint.sh
This commit is contained in:
Kim Alvefur 2019-03-31 18:47:34 +02:00 committed by GitHub
commit e0c2334d2a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 "$@"