From 3d58870f344968d83aa308d90db9efb5d3268a4c Mon Sep 17 00:00:00 2001 From: nate Date: Fri, 23 Feb 2018 14:48:00 -0800 Subject: [PATCH] update docs --- serversetup.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/serversetup.md b/serversetup.md index 8a87e58..6ed4a5f 100644 --- a/serversetup.md +++ b/serversetup.md @@ -14,11 +14,14 @@ * create ttadmin user * ttadmin db user (or just rely on ident..?) / database created -* copy `create_keyfile.py` from `scripts/` and put it in `/opt/bin/`. -* `chmod o+x /opt/bin/create_keyfile.py`` +* copy `create_keyfile.py` from `scripts/` and put it in `/opt/bin/`. +* copy `rename_user.py` from `scripts/` and put it in `/tilde/bin/`. +* `chmod u+x /opt/bin/create_keyfile.py`` * add to sudoers: - ttadmin ALL=(ALL)NOPASSWD:/usr/sbin/adduser,/bin/mkdir,/opt/bin/create_keyfile.py + ``` + ttadmin ALL=(ALL)NOPASSWD:/usr/sbin/adduser,/bin/mkdir,/opt/bin/create_keyfile.py,/tilde/bin/rename_user.py + ``` * have virtualenv with python 3.5+ ready, install tildetown-admin package into it * run django app as wsgi container through gunicorn as the ttadmin user with venv active