From 6c39cbc8e0184d7ddb515ca0e5f67ff64888a7ee Mon Sep 17 00:00:00 2001 From: pim Date: Tue, 8 Sep 2009 08:49:31 +0000 Subject: [PATCH] Remove now obsolete update.cron git-svn-id: svn+ssh://svn.ipng.nl/usr/share/subversion/repositories/ircnet.ipng.ch@31 c5d60b8d-fdcb-4146-b734-af4215e9eb71 --- cron/update.cron | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 cron/update.cron diff --git a/cron/update.cron b/cron/update.cron deleted file mode 100644 index 345d283..0000000 --- a/cron/update.cron +++ /dev/null @@ -1,31 +0,0 @@ -NAME="ircd_update" -AUTHOR="Pim van Pelt" -# MAILTO="pim@ipng.nl" -ESCALATE_MAILTO="pim@ipng.nl" -MASTERLOG="/home/ircd/cronscripts/logs/${NAME}.log" - -PATH=/usr/local/bin:/usr/bin:/bin:/home/ircd/bin - -function bitcron_main() -{ - DIFF="/tmp/${NAME}.diff.$$" - - cd ~/ircd/etc || fatal "No config directory" - - svn diff -r HEAD > $DIFF || fatal "Could not read the SVN repository" - - [ ! -r $DIFF ] && fatal "Cannot read diff file" - - [ -s $DIFF ] && { - warning "Incorporating these diffs from the repository" - cat $DIFF - svn update || error "Could not update local copy" - echo "Checking config" - [ "`/home/ircd/ircd/sbin/chkconf 2>&1 | grep ERROR`" != "" ] && \ - fatal "Configuration is invalid at HEAD!" - echo "Sending -HUP to the ircd" - pkill -HUP ircd || error "Could not send HUP to ircd" - } - - rm -f -- $DIFF -}