diff options
author | Peter Palfrader <peter@palfrader.org> | 2006-10-18 15:01:41 +0000 |
---|---|---|
committer | weasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede> | 2006-10-18 15:01:41 +0000 |
commit | 66037fc2dd65779cb0f4c6cdcbeeb4d21b3dc692 (patch) | |
tree | 56ca67aacf386b358a3aa36f113137c682c48e2a /bin | |
parent | bb322ce47a508381a8330ed4c201a45aa7e272cb (diff) |
Make stats optional
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@223 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
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 |"' |