mirror of
https://github.com/zulip/docker-zulip.git
synced 2025-11-10 17:05:39 +00:00
17 lines
519 B
Bash
17 lines
519 B
Bash
#!/bin/bash
|
|
|
|
sleep 5
|
|
/home/zulip/deployments/current/manage.py create_user --this-user-has-accepted-the-tos "$ZULIP_USER_EMAIL" "$ZULIP_USER_FULLNAME" --domain "$ZULIP_USER_DOMAIN" || :
|
|
/home/zulip/deployments/current/manage.py knight "$ZULIP_USER_EMAIL" -f || :
|
|
exec expect <<EOF
|
|
spawn su zulip -c "/home/zulip/deployments/current/manage.py changepassword $ZULIP_USER_EMAIL"
|
|
expect "Password: "
|
|
send "$ZULIP_USER_PASSWORD"
|
|
send "\n"
|
|
expect "Password (again): "
|
|
send "$ZULIP_USER_PASSWORD"
|
|
send "\n"
|
|
send "\n"
|
|
exit
|
|
EOF
|