about summary refs log tree commit diff stats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-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