summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/ldap2apache4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ldap2apache b/bin/ldap2apache
index b1f3859..707a1c2 100755
--- a/bin/ldap2apache
+++ b/bin/ldap2apache
@@ -349,7 +349,7 @@ clients.each{ |c|
config << " #{addto}" if addto
#
# webstats, part I - proxy to our second webserver
- unless property['stats'] == "no"
+ if property['stats'] == "yes"
config << ' Alias /awstats-classes/ "/usr/share/awstats/classes/"'
config << ' Alias /awstats-css/ "/usr/share/awstats/css/"'
config << ' Alias /awstats-icon/ "/usr/share/awstats/icon/"'
@@ -387,7 +387,7 @@ clients.each{ |c|
end
#
# webstats, part II - we need our own vhost since we can't have suexec enabled
- unless property['stats'] == "no"
+ if property['stats'] == "yes"
config = ['']
config << "<VirtualHost #{@statsbind}>"
config << " ServerName #{server_name}"