add internal domains
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
# echo "* * * * * root /root/scripts/server/list-web-users.sh" > /etc/cron.d/list-web-users
|
||||
|
||||
DOMAINROOT="mit.tareo-tz.org"
|
||||
INTDOMAINROOT="web.intra"
|
||||
WEBDIR="/var/www/html/html"
|
||||
|
||||
> $WEBDIR/websites.txt
|
||||
@@ -11,8 +12,9 @@ find /var/www/* -maxdepth 0 -type d -print0 | while IFS= read -r -d $'\0' line;
|
||||
|
||||
USER=$(basename $line)
|
||||
DOMAIN="$USER.$DOMAINROOT"
|
||||
INTDOMAIN="$USER.$INTDOMAINROOT"
|
||||
if [ ! "$USER" == "html" ] && [ ! "$USER" == "pma" ]; then
|
||||
echo "<li><a href=\"http://$DOMAIN\">$DOMAIN</a></li>" >> $WEBDIR/websites.txt
|
||||
echo "<li><a href=\"http://$INTDOMAIN\">$INTDOMAIN</a> (alternatively <a href=\"http://$DOMAIN\">$DOMAIN</a>)</li>" >> $WEBDIR/websites.txt
|
||||
fi
|
||||
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user