summaryrefslogtreecommitdiffstats
path: root/network/awstats/patches/awstats.pl.patch
blob: d7f058959b40fff2bc2727d68cfb9c3fcaa1cb4d (plain)
--- wwwroot/cgi-bin/awstats.pl.orig	2017-04-03 21:23:54.906211272 -0500
+++ wwwroot/cgi-bin/awstats.pl	2017-04-03 21:26:34.551581204 -0500
@@ -2234,7 +2234,7 @@
 # Check lib files in common possible directories :
 # Windows and standard package:        		"$DIR/lib" (lib in same dir than awstats.pl)
 # Debian package:                    		"/usr/share/awstats/lib"
-	my @PossibleLibDir = ( "$DIR/lib", "/usr/share/awstats/lib" );
+	my @PossibleLibDir = ( "$DIR/lib", "/usr/share/awstats/lib", "@DOCROOT@/awstats/wwwroot/cgi-bin/lib" );
 	my %FilePath       = ();
 	my %DirAddedInINC  = ();
 	my @FileListToLoad = ();
@@ -3130,7 +3130,8 @@
 	my @PossiblePluginsDir = (
 		"$DIR/plugins",
 		"/usr/local/awstats/wwwroot/cgi-bin/plugins",
-		"/usr/share/awstats/plugins"
+		"/usr/share/awstats/plugins",
+                "@DOCROOT@/awstats/wwwroot/cgi-bin/plugins"
 	);
 	my %DirAddedInINC = ();