changing paths, adding web-user-listing
This commit is contained in:
13
server/list-web-users.sh
Executable file
13
server/list-web-users.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
DOMAINROOT="mit.tareo-tz.org"
|
||||
|
||||
find /var/www/* -maxdepth 0 -type d -print0 | while IFS= read -r -d $'\0' line; do
|
||||
|
||||
USER=$(basename $line)
|
||||
DOMAIN="$USER.$DOMAINROOT"
|
||||
if [ ! "$USER" == "html" ]; then
|
||||
echo "<li><a href=\"http://$DOMAIN\">$DOMAIN</a></li>"
|
||||
fi
|
||||
|
||||
done
|
||||
Reference in New Issue
Block a user