mirror of
https://github.com/zulip/docker-zulip.git
synced 2025-10-25 00:53:43 +00:00
Use sudo for user switching in createZulipAdmin script
Removed removed argument for create_realm in createZulipAdmin
This commit is contained in:
@@ -6,8 +6,8 @@ if ([ "$ZULIP_USER_CREATION_ENABLED" == "True" ] && [ "$ZULIP_USER_CREATION_ENAB
|
||||
fi
|
||||
set +e
|
||||
# Doing everything in python, even I never coded in python #YOLO
|
||||
sudo su zulip <<BASH
|
||||
/home/zulip/deployments/current/manage.py create_realm --string_id="$ZULIP_USER_DOMAIN" --name="$ZULIP_USER_DOMAIN" -d "$ZULIP_USER_DOMAIN"
|
||||
sudo -H -u zulip -g zulip bash <<BASH
|
||||
/home/zulip/deployments/current/manage.py create_realm --string_id="$ZULIP_USER_DOMAIN" --name="$ZULIP_USER_DOMAIN"
|
||||
/home/zulip/deployments/current/manage.py create_user --this-user-has-accepted-the-tos --realm "$ZULIP_USER_DOMAIN" "$ZULIP_USER_EMAIL" "$ZULIP_USER_FULLNAME"
|
||||
/usr/bin/expect <<EOF
|
||||
set timeout 5
|
||||
|
||||
Reference in New Issue
Block a user