diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ldap2awstats | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/ldap2awstats b/bin/ldap2awstats index 93f0ccb..130c402 100755 --- a/bin/ldap2awstats +++ b/bin/ldap2awstats @@ -39,6 +39,16 @@ clients.each{ |c| server_admin = vhost['tnWebVHostWebmaster'][0] server_aliases = (vhost['tnWebVHostServerAlias'] or []).join(" ") + property = {} + if vhost['tnWebVHostProperties'] + vhost['tnWebVHostProperties'].each{ |prop| + (key, val) = prop.split('=', 2) + property[key] = val + } + end + next if property['stats']='no' + + config = [] config << 'Include "/etc/awstats/awstats.conf"' config << 'LogFile="zcat '+client_home+'/logs-archive/'+server_name+'-access*gz |"' |