create-zulip-admin: Fix shell quoting.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
Anders Kaseorg 2019-01-15 19:37:02 -08:00 committed by Tim Abbott
parent 981f09d950
commit 5ba84d75ce
1 changed files with 2 additions and 4 deletions

View File

@ -9,7 +9,5 @@ if { [ "$ZULIP_USER_CREATION_ENABLED" == "True" ] || [ "$ZULIP_USER_CREATION_ENA
exit 1
fi
set +e
sudo -H -u zulip -g zulip bash <<BASH
/home/zulip/deployments/current/manage.py create_user --this-user-has-accepted-the-tos --realm "$ZULIP_USER_DOMAIN" --password "$ZULIP_USER_PASS" "$ZULIP_USER_EMAIL" "$ZULIP_USER_FULLNAME"
/home/zulip/deployments/current/manage.py knight "$ZULIP_USER_EMAIL" -f
BASH
sudo -H -u zulip -g zulip /home/zulip/deployments/current/manage.py create_user --this-user-has-accepted-the-tos --realm "$ZULIP_USER_DOMAIN" --password "$ZULIP_USER_PASS" "$ZULIP_USER_EMAIL" "$ZULIP_USER_FULLNAME"
sudo -H -u zulip -g zulip /home/zulip/deployments/current/manage.py knight "$ZULIP_USER_EMAIL" -f