Make homepages without tildes, too

This commit is contained in:
Neale Pickett 2012-10-29 12:15:50 -05:00
parent 555afad443
commit c947e9983c
1 changed files with 5 additions and 2 deletions

View File

@ -8,8 +8,11 @@ echo
ls /home/*/public_html/index.html | while read fn; do
a=${fn#/home/}
u=${a%/public_html/index.html}
l=/srv/www/woozle.org/~$u
tl=/srv/www/woozle.org/~$u
l=/srv/www/woozle.org/$u
echo "* [$u](/~$u/)"
[ -h $l ] || ln -s /home/$u/public_html $l
for link in $tl $l; do
[ -h $link ] || ln -s /home/$u/public_html $link
done
done