Files
docker-zulip/zulip-puppet/files/setupZulipUser.sh
Alexander Trost b5cf042dbe Fixed wrong var here
The script isn't working currently, I'll fix this in another commit
2015-10-22 00:48:57 +02:00

12 lines
481 B
Bash

#!/bin/bash
/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 || :
/home/zulip/deployments/current/manage.py shell <<EOF
from zerver.decorator import get_user_profile_by_email
User = get_user_profile_by_email('$ZULIP_USER_EMAIL')
User.set_password('$ZULIP_USER_PASS')
User.save()
EOF
exit 200