diff -ur awstats-7.9.orig/tools/awstats_buildstaticpages.pl awstats-7.9/tools/awstats_buildstaticpages.pl --- awstats-7.9.orig/tools/awstats_buildstaticpages.pl 2021-08-19 04:00:58.000000000 +0200 +++ awstats-7.9/tools/awstats_buildstaticpages.pl 2024-01-07 20:10:32.230113241 +0100 @@ -129,7 +129,7 @@ my @PossibleConfigDir=(); if ($configdir) { @PossibleConfigDir=("$configdir"); } - else { @PossibleConfigDir=("$AwstatsDir","$DIR","/etc/awstats","/usr/local/etc/awstats","/etc","/etc/opt/awstats"); } + else { @PossibleConfigDir=("$AwstatsDir","$DIR","/etc/webapps/awstats","/etc/awstats","/usr/local/etc/awstats","/etc","/etc/opt/awstats"); } # Open config file $FileConfig=$FileSuffix=''; @@ -299,8 +299,8 @@ # Check if AWSTATS prog is found my $AwstatsFound=0; if (-s "$Awstats") { $AwstatsFound=1; } -elsif (-s "/usr/local/awstats/wwwroot/cgi-bin/awstats.pl") { - $Awstats="/usr/local/awstats/wwwroot/cgi-bin/awstats.pl"; +elsif (-s "/usr/share/awstats/wwwroot/cgi-bin/awstats.pl") { + $Awstats="/usr/share/awstats/wwwroot/cgi-bin/awstats.pl"; $AwstatsFound=1; } elsif (-s "/usr/lib/cgi-bin/awstats.pl") { diff -ur awstats-7.9.orig/tools/awstats_configure.pl awstats-7.9/tools/awstats_configure.pl --- awstats-7.9.orig/tools/awstats_configure.pl 2019-06-27 11:30:40.000000000 +0200 +++ awstats-7.9/tools/awstats_configure.pl 2024-01-07 20:10:32.231113254 +0100 @@ -28,11 +28,11 @@ $AWSTATS_DIRDATA_PATH /; $AWSTATS_PATH=''; -$AWSTATS_ICON_PATH='/usr/local/awstats/wwwroot/icon'; -$AWSTATS_CSS_PATH='/usr/local/awstats/wwwroot/css'; -$AWSTATS_CLASSES_PATH='/usr/local/awstats/wwwroot/classes'; -$AWSTATS_CGI_PATH='/usr/local/awstats/wwwroot/cgi-bin'; -$AWSTATS_MODEL_CONFIG='/etc/awstats/awstats.model.conf'; # Used only when configure ran on linux +$AWSTATS_ICON_PATH='/usr/share/awstats/wwwroot/icon'; +$AWSTATS_CSS_PATH='/usr/share/awstats/wwwroot/css'; +$AWSTATS_CLASSES_PATH='/usr/share/awstats/wwwroot/classes'; +$AWSTATS_CGI_PATH='/usr/share/awstats/wwwroot/cgi-bin'; +$AWSTATS_MODEL_CONFIG='/etc/webapps/awstats/awstats.model.conf'; # Used only when configure ran on linux $AWSTATS_DIRDATA_PATH='/var/lib/awstats'; # Used only when configure ran on linux @@ -610,7 +610,7 @@ my $bidon=''; print "Directory path to store config file(s) (Enter for default):\n> "; $bidon=; chomp $bidon; - if (! $bidon) { $bidon = "/etc/awstats"; } + if (! $bidon) { $bidon = "/etc/webapps/awstats"; } my $configdir=$bidon; if (! -d $configdir) { # Create the directory for config files diff -ur awstats-7.9.orig/tools/awstats_updateall.pl awstats-7.9/tools/awstats_updateall.pl --- awstats-7.9.orig/tools/awstats_updateall.pl 2014-09-23 09:16:09.000000000 +0200 +++ awstats-7.9/tools/awstats_updateall.pl 2024-01-07 20:10:32.231113254 +0100 @@ -12,7 +12,7 @@ my $VERSION="1.0 (build $REVISION)"; # Default value of DIRCONFIG -my $DIRCONFIG = "/etc/awstats"; +my $DIRCONFIG = "/etc/webapps/awstats"; my $Debug=0; @@ -129,8 +129,8 @@ # Check if AWSTATS prog is found my $AwstatsFound=0; if (-s "$Awstats") { $AwstatsFound=1; } - elsif (-s "/usr/local/awstats/wwwroot/cgi-bin/awstats.pl") { - $Awstats="/usr/local/awstats/wwwroot/cgi-bin/awstats.pl"; + elsif (-s "/usr/share/awstats/wwwroot/cgi-bin/awstats.pl") { + $Awstats="/usr/share/awstats/wwwroot/cgi-bin/awstats.pl"; $AwstatsFound=1; } if (! $AwstatsFound) { diff -ur awstats-7.9.orig/wwwroot/cgi-bin/awstats.pl awstats-7.9/wwwroot/cgi-bin/awstats.pl --- awstats-7.9.orig/wwwroot/cgi-bin/awstats.pl 2024-01-07 20:09:51.559596037 +0100 +++ awstats-7.9/wwwroot/cgi-bin/awstats.pl 2024-01-07 20:10:32.235113304 +0100 @@ -1716,6 +1716,7 @@ my $configdir = shift; my @PossibleConfigDir = ( "$DIR", + "/etc/webapps/awstats", "/etc/awstats", "/usr/local/etc/awstats", "/etc/opt/awstats"