diff options
author | admins <admins@tilde.institute> | 2020-05-01 19:25:24 -0400 |
---|---|---|
committer | admins <admins@tilde.institute> | 2020-05-01 19:25:24 -0400 |
commit | 8d04428957a3cf54a2bcb205dafb2660c655d12a (patch) | |
tree | fcd4ad3f5ecbbd68ecc00108ff935af32de14a23 /bin/makeuser | |
parent | 926224f84ffe15408a1206c021075fd5860bd666 (diff) | |
download | admin-8d04428957a3cf54a2bcb205dafb2660c655d12a.tar.gz |
creating user public_repos directory
Diffstat (limited to 'bin/makeuser')
-rwxr-xr-x | bin/makeuser | 7 |
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 |