mirror of https://github.com/nealey/woozle.org.git
Make homepages without tildes, too
This commit is contained in:
parent
555afad443
commit
c947e9983c
|
@ -8,8 +8,11 @@ echo
|
||||||
ls /home/*/public_html/index.html | while read fn; do
|
ls /home/*/public_html/index.html | while read fn; do
|
||||||
a=${fn#/home/}
|
a=${fn#/home/}
|
||||||
u=${a%/public_html/index.html}
|
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/)"
|
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
|
done
|
||||||
|
|
Loading…
Reference in New Issue