Files
pkgsrc-ng/www/awstats/patches/patch-aa
2013-09-26 17:14:40 +02:00

16 lines
446 B
Plaintext

$NetBSD: patch-aa,v 1.12 2013/04/27 11:19:38 adam Exp $
Check for configdir.
--- wwwroot/cgi-bin/awstats.pl.orig 2013-03-08 20:16:52.000000000 +0000
+++ wwwroot/cgi-bin/awstats.pl
@@ -1713,7 +1713,7 @@ sub Read_Config {
"/etc/opt/awstats"
);
- if ($configdir) {
+ if ($configdir && $ENV{"AWSTATS_ENABLE_CONFIG_DIR"}) {
# Check if configdir is outside default values.
my $outsidedefaultvalue=1;
foreach (@PossibleConfigDir) {