diff --git a/server/index.php b/server/index.php new file mode 100644 index 0000000..46625f4 --- /dev/null +++ b/server/index.php @@ -0,0 +1,21 @@ + +
+...to the internal website storage server of Moshi Institute of Technology.
+ +To view the publicly shared files, please click here.
+Please visit the students' own websites on this server for more.
+There're currently following websites active:
+Teachers can visit the internal shared files (password protected). Please visit this website.
+ + + diff --git a/server/list-web-users.sh b/server/list-web-users.sh index ccc5af6..b29cc97 100755 --- a/server/list-web-users.sh +++ b/server/list-web-users.sh @@ -1,13 +1,18 @@ #!/bin/bash +# echo "* * * * * root /root/scripts/server/list-web-users.sh" > /etc/cron.d/list-web-users + DOMAINROOT="mit.tareo-tz.org" +WEBDIR="/var/www/html" + +> $WEBDIR/websites.txt 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 "