V 1.0.6 v1.0.6
authorPeter Stimpel <pstimpel@gmail.com>
Tue, 27 Feb 2018 19:16:40 +0000 (20:16 +0100)
committerPeter Stimpel <pstimpel@gmail.com>
Tue, 27 Feb 2018 19:16:40 +0000 (20:16 +0100)
- check, if updated from 1.0.4 or below due changed structure of conf-file

CHANGES
logcheck.pl

diff --git a/CHANGES b/CHANGES
index 31a71b4..e0a9e02 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,14 +1,20 @@
 logcheck.pl
 -------------------
+V 1.0.6
+- check, if updated from 1.0.4 or below due changed structure of conf-file
+
+
 V 1.0.5
 - pid file handling, no logchecks if pid file exists
 - removed path to logcheck setting from configuration, dynamic path recognition instead
 
+
 V 1.0.4
 - changed license from GPL V2 to GPL V3, license file changed
 - some cleaner output of help, contact details changed
 - "-l" parameter introduced to print license file
 
+
 V 1.0.3
 - adds a remark to logfiles if violations against the whitelist were found
 - this remark was added to the whitelist ("logcheckprint")
index 277f618..8c1c425 100644 (file)
 require 'logcheck.conf';
 $mode="run";
 
+if (defined($logcheckpath)) {
+
+       print "There was change in the configuration starting from version 1.0.5!\n";
+       print "\n";
+       print '$file_whitelist=$logcheckpath."logcheck.whitelist"; is now'."\n";
+       print '$file_whitelist="logcheck.whitelist";'."\n";
+       print "\n";
+       print '$file_logfiles=$logcheckpath."logcheck.logfiles"; is now'."\n";
+       print '$file_logfilelist="logcheck.logfiles";'."\n";
+       print "\n";
+       print '$logcheckpath="/your/path/"; is now'."\n";
+       print '#$logcheckpath="/your/path/";'."\n";
+       print "\nPlease make these changes before you continue using logcheck.pl\n";
+       exit 1;
+}
+
 use File::Basename;
 use File::Spec;
 $dirname = File::Spec->rel2abs(dirname(__FILE__));
@@ -32,7 +48,7 @@ $file_logfilelist = $dirname."/".$file_logfilelist;
 sub head() {
        print "\n";
        print "-----------------------------\n";
-       print "This is logcheck.pl V1.0.5\n";
+       print "This is logcheck.pl V1.0.6\n";
        print "https://peters-webcorner.de\n";
        print "project hosted on github\n";
        print "https://github.com/pstimpel/logcheck\n\n";