]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Add hidden feature to force LastLine for update process when LastLine is corrupted...
authoreldy <>
Sun, 23 Jul 2006 23:00:30 +0000 (23:00 +0000)
committereldy <>
Sun, 23 Jul 2006 23:00:30 +0000 (23:00 +0000)
tools/awstats_updateall.pl
wwwroot/cgi-bin/awstats.pl

index ed631085ea207f900cfb8b42fd25b9b0416f1a32..450f7aece9268b787ed76c3e3e92308e124931c5 100644 (file)
@@ -150,6 +150,10 @@ if (@files) {
                        # Define command line
                        my $command="\"$AwstatsDir/$AwstatsProg\" -update -config=$domain";
                        $command.=" -configdir=\"$DIRCONFIG\"";
+                       if ($LastLine) 
+                       {
+                               $command.=" -lastline=$LastLine";
+                       }
                        # Run command line
                        print "Running '$command' to update config $domain\n";
                        my $output = `$command 2>&1`;
index 0e61ef15b1747eaf21e2d003b07ba376dc0e819f..39780c69f2241b8b923e0053b98d47471b864abc 100644 (file)
@@ -6038,7 +6038,7 @@ if ($lastyearbeforeupdate) {
 # Warning if lastline in future 
 if ($LastLine > ($nowtime + 20000))
 {
-       warning("WARNING: LastLine parameter in history file is '$LastLine' so in future. May be you need to correct manually the line LastLine in some awstats*.$SiteConfig files.");
+       warning("WARNING: LastLine parameter in history file is '$LastLine' so in future. May be you need to correct manually the line LastLine in some awstats*.$SiteConfig.conf files.");
 }
 # Force LastLine
 if ($QueryString =~ /lastline=(\d{14})/i)