about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authoradmins <admins@tilde.institute>2020-05-01 19:25:24 -0400
committeradmins <admins@tilde.institute>2020-05-01 19:25:24 -0400
commit8d04428957a3cf54a2bcb205dafb2660c655d12a (patch)
treefcd4ad3f5ecbbd68ecc00108ff935af32de14a23
parent926224f84ffe15408a1206c021075fd5860bd666 (diff)
downloadadmin-8d04428957a3cf54a2bcb205dafb2660c655d12a.tar.gz
creating user public_repos directory
-rwxr-xr-xbin/makeuser7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/makeuser b/bin/makeuser
index 5ceeb0f..e7bc4b8 100755
--- a/bin/makeuser
+++ b/bin/makeuser
@@ -43,7 +43,12 @@ case $1 in
 # make the public_html directory for the users
 	mkdir /var/www/users/$1
 	chown $1:tilde /var/www/users/$1
-	ln -s /var/www/users/$1 /home/$1/public_html
+    doas -u $1 ln -s /var/www/users/$1 /home/$1/public_html
+
+# make the public_repos directory
+    mkdir /var/www/cgit_repos/$1
+    chown $1:tilde /var/www/cgit_repos/$1
+    doas -u $1 ln -s /var/www/cgit_repos/$1 /home/$1/public_repos
 
 # set up the httpd configuration for
 # individual users. this config forces tls