2010-11-10 20:54:22 -07:00
|
|
|
#! /bin/sh
|
|
|
|
|
|
|
|
echo 'Title: People'
|
|
|
|
echo
|
2012-02-22 12:43:35 -07:00
|
|
|
echo 'The following people have made public homepages:'
|
|
|
|
echo
|
2010-11-10 20:54:22 -07:00
|
|
|
|
|
|
|
ls /home/*/public_html/index.html | while read fn; do
|
|
|
|
a=${fn#/home/}
|
|
|
|
u=${a%/public_html/index.html}
|
2013-11-07 14:18:49 -07:00
|
|
|
tl=/srv/http/woozle.org/~$u
|
|
|
|
l=/srv/http/woozle.org/$u
|
2010-11-10 20:54:22 -07:00
|
|
|
|
2012-02-04 10:16:01 -07:00
|
|
|
echo "* [$u](/~$u/)"
|
2012-10-29 11:15:50 -06:00
|
|
|
for link in $tl $l; do
|
|
|
|
[ -h $link ] || ln -s /home/$u/public_html $link
|
|
|
|
done
|
2010-11-10 20:54:22 -07:00
|
|
|
done
|