diff --git a/server/backup.sh b/server/backup.sh index ad28733..f0f0a48 100755 --- a/server/backup.sh +++ b/server/backup.sh @@ -1,6 +1,6 @@ #!/bin/bash -# echo "0 11 * * * root /root/scripts/backup.sh" > /etc/cron.d/backup +# echo "0 11 * * * root /root/scripts/server/backup.sh" > /etc/cron.d/backup BAKDIR=/root/backup/configsave diff --git a/server/list-web-users.sh b/server/list-web-users.sh new file mode 100755 index 0000000..ccc5af6 --- /dev/null +++ b/server/list-web-users.sh @@ -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 "
  • $DOMAIN
  • " + fi + +done diff --git a/server/new-web-user.sh b/server/new-web-user.sh index 14b305a..9a14bf6 100755 --- a/server/new-web-user.sh +++ b/server/new-web-user.sh @@ -112,6 +112,7 @@ cat > /etc/apache2/sites-available/$USER.conf << EOF FCGIWrapper $WEBDIR/php-fcgi/php-fcgi-starter .php Order allow,deny allow from all + AllowOverride All ErrorLog $WEBDIR/logs/error.log LogLevel warn diff --git a/server/sync-public.sh b/server/sync-public.sh index a1cfff7..5d3bd67 100755 --- a/server/sync-public.sh +++ b/server/sync-public.sh @@ -1,6 +1,6 @@ #!/bin/bash -# echo "* * * * * root /root/scripts/sync-public.sh" > /etc/cron.d/sync-public +# echo "* * * * * root /root/scripts/server/sync-public.sh" > /etc/cron.d/sync-public for ((i = 1; i <= 4; i++)); do # Execute 4 times in a row # echo $(date) >> /var/share/cron.log