From de55e654ac580e4af33c0bb77b0406e55e45c569 Mon Sep 17 00:00:00 2001 From: Max Erenberg Date: Tue, 25 Oct 2022 23:47:47 -0400 Subject: [PATCH] Update env file instructions --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d9366cd..acda17e 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Just the usual: ``` ansible-playbook playbook.yml ``` -Once the playbook has finished, open `/opt/greenlight/.env` and set the +Once the playbook has finished, open `/root/bbb/env` and set the value of `DB_PASSWORD`. Also, place copies of `csclub-wildcard-chain.crt` and `csclub-wildcard.key` @@ -46,6 +46,11 @@ UPDATE users SET role_id = 2 WHERE username = 'my_csc_username'; When you log back in, you should now be an admin. +## Editing the env file +Whenever you edit /root/bbb/env, make sure to restart the greenlight container +on xylitol with e.g. `systemct restart container-greenlight` and then run +`podman exec greenlight bin/rake db:migrate`. + ## Greenlight customization To ensure that future sysadmins automatically become Greenlight admins, create a new role called "sysadmin" from the org settings in Greenlight.