diff --git a/cron/update.cron b/cron/update.cron index 1e1c786..345d283 100644 --- a/cron/update.cron +++ b/cron/update.cron @@ -20,6 +20,9 @@ function bitcron_main() 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" }