summaryrefslogtreecommitdiff
path: root/bin/ldap2apache
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2014-09-11 21:27:22 +0200
committerPeter Palfrader <peter@palfrader.org>2014-09-11 21:27:22 +0200
commit7879a57e0068c9860348052c4db105702f89ec8a (patch)
tree76202b160362b2866346a0b36c3fb89b0c54f755 /bin/ldap2apache
parenta05d75c745274c18335313bd00b2daa91b2df28d (diff)
Default to no stats
Diffstat (limited to 'bin/ldap2apache')
-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}"