-
-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This should fix the problems with the automatic user creation
- Loading branch information
Showing
4 changed files
with
17 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/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('atrost@zerbytes.net') | ||
User.set_password('$ZULIP_USER_PASSWORD') | ||
User.save() | ||
EOF | ||
rm -rf /etc/supervisor/conf.d/zulip_postsetup.conf | ||
exit 0 |
5 changes: 3 additions & 2 deletions
5
includes/zulip-puppet/files/supervisor/conf.d/zulip_postsetup.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
[program:zulip-postsetup] | ||
command = bash -c "/usr/local/bin/zulipCreateUser.sh" | ||
[program:zulip-postsetup-create_user] | ||
command = bash -c "sleep 8;/opt/setupZulipUser.sh" | ||
user=zulip | ||
stdout_events_enabled=true | ||
stderr_events_enabled=true | ||
autorestart = false |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters