summaryrefslogtreecommitdiff
path: root/www/awstats/files/patch-tools-awstats_configure.pl
blob: c22ec5e2e64e5ad5b121ffa0a0a8600c9cdc5708 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
--- tools/awstats_configure.pl.orig	2016-07-17 17:51:11 UTC
+++ tools/awstats_configure.pl
@@ -27,7 +27,7 @@ $AWSTATS_CGI_PATH
 $AWSTATS_MODEL_CONFIG
 $AWSTATS_DIRDATA_PATH
 /;
-$AWSTATS_PATH='';
+$AWSTATS_PATH='%%WWWDIR%%';
 $AWSTATS_ICON_PATH='/usr/local/awstats/wwwroot/icon';
 $AWSTATS_CSS_PATH='/usr/local/awstats/wwwroot/css';
 $AWSTATS_CLASSES_PATH='/usr/local/awstats/wwwroot/classes';
@@ -63,6 +63,9 @@ use vars qw/
 '/etc/httpd/httpd.conf',
 '/usr/local/apache/conf/httpd.conf',
 '/usr/local/apache2/conf/httpd.conf',
+'%%LOCALBASE%%/etc/apache13/httpd.conf',
+'%%LOCALBASE%%/etc/apache22/httpd.conf',
+'%%LOCALBASE%%/etc/apache24/httpd.conf'
 );
 
 use vars qw/
@@ -308,7 +311,7 @@ if ($OS eq 'linux') {
 	$AWSTATS_PATH=`pwd`; $AWSTATS_PATH =~ s/[\r\n]//;
 	$AWSTATS_PATH=~s/tools[\\\/]?$//;
 	$AWSTATS_PATH=~s/[\\\/]$//;
-	if ($AWSTATS_PATH ne '/usr/local/awstats') {
+	if ($AWSTATS_PATH ne '%%WWWDIR%%') {
 		print "Warning: AWStats standard directory on Linux OS is '/usr/local/awstats'.\n";
 		print "If you want to use standard directory, you should first move all content\n";
 		print "of AWStats distribution from current directory:\n";
@@ -419,6 +422,7 @@ if (! scalar keys %ApacheConfPath) {
 
 		print "\n".($bidon?"Now, enter":"Enter")." full config file path of your Web server.\n";
 		print "Example: /etc/httpd/httpd.conf\n";
+		print "Example: %%LOCALBASE%%/etc/apache24/httpd.conf\n";
 		print "Example: /usr/local/apache2/conf/httpd.conf\n";
 		print "Example: c:\\Program files\\apache group\\apache\\conf\\httpd.conf\n";
 		$bidon='';