]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Fix bug 762882 - confdir argument is not propagated
authoreldy <>
Sat, 12 Jul 2003 17:26:02 +0000 (17:26 +0000)
committereldy <>
Sat, 12 Jul 2003 17:26:02 +0000 (17:26 +0000)
tools/awstats_updateall.pl

index ff3115c8032c9bd4c28323f52bebe7de29019007..34d2553d139391821f1ce8bb5aee51c8e4e595e9 100644 (file)
@@ -62,8 +62,12 @@ if (@files) {
                if ($_ =~ /^awstats\.(.*)conf$/) {
                        my $domain = $1||"default"; $domain =~ s/\.$//;
                        if ($domain eq 'model') { next; }
-                       print "Running $AWSTATSSCRIPT to update config $domain\n";
-                       my $output = `"$AWSTATSSCRIPT" -config=$domain -update 2>&1`;
+                       # Define command line
+                       my $command="\"$AWSTATSSCRIPT\" -update -config=$domain";
+                       $command.=" -configdir=\"$DIRCONFIG\"";
+                       # Run command line
+                       print "Running '$command' to update config $domain\n";
+                       my $output = `$command 2>&1`;
                        print "$output\n";
                }
        }