update to latest version

This commit is contained in:
2016-02-26 02:22:04 +01:00
parent c6275b7557
commit 38fcc24bcc
6 changed files with 21 additions and 9 deletions

View File

@@ -1,10 +1,10 @@
#!/bin/bash
# echo "* * * * * root /root/scripts/server/list-web-users.sh" > /etc/cron.d/list-web-users
# echo "* * * * * root /root/tareo-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="/var/www/start/html"
> $WEBDIR/websites.txt
@@ -13,7 +13,7 @@ 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
if [ ! "$USER" == "start" ] && [ ! "$USER" == "pma" ]; then
echo "<li><a href=\"http://$INTDOMAIN\">$INTDOMAIN</a> (alternatively <a href=\"http://$DOMAIN\">$DOMAIN</a>)</li>" >> $WEBDIR/websites.txt
fi