summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/ldap2awstats4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ldap2awstats b/bin/ldap2awstats
index 7f1d378..e9c4102 100755
--- a/bin/ldap2awstats
+++ b/bin/ldap2awstats
@@ -33,7 +33,7 @@ files = {}
clients.each{ |c|
c['vhosts'] = ldap.conn.search2(c['dn'][0], LDAP::LDAP_SCOPE_SUBTREE, '(&(objectclass=tnWebVHost)(tnHost='+@config['thishost']+'))')
- client_home = c['homeDirectory'][0] or throw "No home for #{d['dn'][0]}"
+ client_name = c['o'][0] or throw "No name (o) for #{d['dn'][0]}"
c['vhosts'].each{ |vhost|
server_name = vhost['tnWebVHostServerName'][0]
server_admin = vhost['tnWebVHostWebmaster'][0]
@@ -51,7 +51,7 @@ clients.each{ |c|
config = []
config << 'Include "/etc/awstats/awstats.conf"'
- config << 'LogFile="zcat '+client_home+'/logs-archive/'+server_name+'-access*gz |"'
+ config << 'LogFile="/usr/local/bin/weblogs-cat-and-remove '+server_name+' '+server_name+' |"'
config << 'SiteDomain="'+server_name+'"'
config << 'HostAliases="'+server_aliases+' '+server_name+'"'