about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorahriman <ahriman@falte.red>2019-04-24 23:38:33 +0000
committerahriman <ahriman@falte.red>2019-04-24 23:38:33 +0000
commited6c29e020ce1359c284ad0939594f9922bced93 (patch)
tree53ea896de6385b08d4b6cdd7dc5502897619de8e
parent69a51002445a0637a9186f98a46af04b5a22e0cb (diff)
downloadadmin-ed6c29e020ce1359c284ad0939594f9922bced93.tar.gz
generating user list for sign-up form to submit against
-rwxr-xr-xbin/makeuser1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/makeuser b/bin/makeuser
index a0b6ff8..0081bbf 100755
--- a/bin/makeuser
+++ b/bin/makeuser
@@ -83,5 +83,6 @@ case $1 in
 # announce the new user's creation on mastodon
 # then copy their ssh key to their home directory
     /admin/bin/toot.py "Welcome new user ~$1!"
+    </etc/passwd cut -d ":" -f1 > /var/www/htdocs/userlist
     echo "$3" | tee /home/$1/.ssh/authorized_keys
 esac