-
Notifications
You must be signed in to change notification settings - Fork 7
Add exam bank librarian to admins list #334
Description
@ webdev leads, this one is for you.
The VPA (Patrik) has asked that we set up exam_director@mathsoc.uwaterloo.ca as an admin on the site, so that they're able to update the exam bank.
Adding the email shouldn't be too hard to do, but we also need to update the server to reflect our changes.
Steps:
- Update the list of admin users to include
exam_director@mathsoc.uwaterloo.ca- it's in a config file somewhere. I believe if you ctrl+f@mathsoc.uwaterloo.ca, it should come up. - Commit the change to the repo
- Restart the mathsoc website server
- SSH into
services.mathsoc.uwaterloo.ca. You'll need to set up your SSH key on Authman - there's steps in the MathSoc repos atgitlab.uwaterloo.ca. You'll also need to be either on-campus or on the campus VPN. - Once you're in, run
sudo -ito authenticate. You won't be able to see any files without doing this. - Redeploy the website using the
deploy.shscript in/root.- The website is being run through a service called
mathsoc-website. You likely shouldn't need to touch it directly though - there's adeploy.shscript in the/rootdirectory that you should be able to run, which will pull the new changes and restart the website. There's another one at/root/deployiirc - either should work? - You can use
journalctlcommands to look into themathsoc-websiteservice and view logs, in the event that things really stop working.
- The website is being run through a service called
- SSH into
Testing:
To test that the changes have deployed, you can try adding/removing webdev@mathsoc.uwaterloo.ca to the admin list manually. I believe you can go to /srv to find the website files; once there, navigate to the admins config file and add/remove the webdev email, then redeploy.
Alternatively, feel free to reach out to the VPA and coordinate testing with the exam directors!
Let me know if you get stuck with configuration or testing at any step of this - it's very possible I've forgotten to outline a step, or neglected to add permissions everywhere necessary.