summaryrefslogtreecommitdiff
path: root/topics
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-03-12 05:39:33 +0300
committerFrederick Muriuki Muriithi2024-03-12 05:40:12 +0300
commit09c2219faa764666ed154cc629942a8230c80218 (patch)
tree02eba3a65eb2df8dbe40cca06c90831bfbd4bec4 /topics
parent6f67ece563bbb4ff1a5613d7f72aaed6a5303ace (diff)
downloadgn-gemtext-09c2219faa764666ed154cc629942a8230c80218.tar.gz
Add documentation on how to register a system admin.
Diffstat (limited to 'topics')
-rw-r--r--topics/authentication/deploying-gn-auth.gmi16
1 files changed, 16 insertions, 0 deletions
diff --git a/topics/authentication/deploying-gn-auth.gmi b/topics/authentication/deploying-gn-auth.gmi
index 10e7089..b926501 100644
--- a/topics/authentication/deploying-gn-auth.gmi
+++ b/topics/authentication/deploying-gn-auth.gmi
@@ -126,6 +126,22 @@ That should copy the file retaining the original permissions.
$ sudo systemctl start genenetwork-container.service
```
+### Register a System Admin
+
+This part expects that you have already run the migrations as above to setup the latest database schema in place. If you have not already done that, please do that first.
+
+The process is mostly very similar to that of the migrations, except in step 5, instead of running migrations, we instead run the CLI script to create the administrative user:
+
+```
+…/gn-auth [env]$ python3 -m scripts.register_sys_admin /home/fredm/auth.db
+Enter the user's name: Some Admin User
+Enter the administrator's email: some@admin.user
+Enter password:
+Confirm password:
+…/gn-auth [env]$
+```
+
+After that, we continue with steps 6 onward as in the section on running migrations.
## Web Server Configurations