Skip to content

Commit

Permalink
Autogenerate public_html dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
oski-bear authored Jun 11, 2024
1 parent 6a42fb1 commit 4c54949
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/newuser/config_newuser
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@ echo $2 > /nfs/homes/$1/.forward
chown -R $3:1000 /nfs/homes/$1
echo $2 | add_members -r - Csua-newmembers
if ($4); then echo $2 | add_members -r - Jobs; fi

#this is for creating the public_html folder and link
mkdir -m 755 /nfs/public_html/$1
chown -R $3:1000 /nfs/public_html/$1
ln -s /csua/public_html/$1 /nfs/homes/$1/public_html

0 comments on commit 4c54949

Please sign in to comment.