creating user public_repos directory

This commit is contained in:
admins 2020-05-01 19:25:24 -04:00
parent 926224f84f
commit 8d04428957
1 changed files with 6 additions and 1 deletions

View File

@ -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