[Logcheck-commits] CVS logcheck/src

CVS User ttroxell logcheck-devel at lists.alioth.debian.org
Sat Dec 31 11:22:21 UTC 2005


Update of /cvsroot/logcheck/logcheck/src
In directory haydn:/tmp/cvs-serv21504/src

Modified Files:
	logcheck 
Log Message:
add cfgfile check


--- /cvsroot/logcheck/logcheck/src/logcheck	2005/09/02 06:38:22	1.129
+++ /cvsroot/logcheck/logcheck/src/logcheck	2005/12/31 11:22:21	1.130
@@ -22,7 +22,7 @@
 # along with Logcheck; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
-# $Id: logcheck,v 1.129 2005/09/02 06:38:22 ttroxell Exp $
+# $Id: logcheck,v 1.130 2005/12/31 11:22:21 ttroxell Exp $
 
 if [ $UID == 0 ]; then
     echo "logcheck should not be run as root. Use su to invoke logcheck:"
@@ -507,6 +507,8 @@
 # Now source the config file - before things that should not be changed
 if [ -r $CONFFILE ]; then
 	. $CONFFILE
+else
+	error  "Config file $CONFFILE could not be read"
 fi
 
 # Setup the compatibility for the old style of setting $INTRO



More information about the Logcheck-commits mailing list