summaryrefslogtreecommitdiff
path: root/util/OLD/cron_daily.sh
diff options
context:
space:
mode:
Diffstat (limited to 'util/OLD/cron_daily.sh')
-rwxr-xr-xutil/OLD/cron_daily.sh31
1 files changed, 0 insertions, 31 deletions
diff --git a/util/OLD/cron_daily.sh b/util/OLD/cron_daily.sh
deleted file mode 100755
index 743a9839..00000000
--- a/util/OLD/cron_daily.sh
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/bash
-
-# we want to run as user 'yorhel'
-if [ `id -nu` != 'yorhel' ]; then
- su yorhel -c "$0"
- exit;
-fi
-
-cd /www/vndb/util
-
-SQL='psql -e vndb -U vndb';
-
-echo '
-
- =================================================================================
-=================== VNDB cron running at '`date`' ==================
-=== Executing SQL statements'
-echo '\timing
-\i cron_daily.sql' | $SQL
-
-echo '=== Creating/updating sitemap';
-./sitemap.pl
-#echo '=== Cleaning up images';
-#./cleanimg.pl
-#echo '=== Creating relation graphs';
-#./relgraph.pl
-echo '=== VACUUM FULL ANALYZE';
-vacuumdb -U yorhel --full --analyze vndb >/dev/null 2>&1
-
-echo '=== VNDB cron finished at '`date`' ===';
-