From 41df3d7398ee7e23ed65eb61f375fce1a6d688e8 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Mon, 18 Mar 2013 16:32:30 +0000 Subject: Fewer extra files git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@599 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- bin/ldap2apache | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/bin/ldap2apache b/bin/ldap2apache index 707b984..d6c51ba 100755 --- a/bin/ldap2apache +++ b/bin/ldap2apache @@ -348,7 +348,7 @@ clients.each{ |c| files[ c['o'][0] +"-"+ server_name ] = config if ssl and http_ssl_upgrade - config = [] + config = [''] config << make_vhostline(bind, bindhttpport) config << " ServerName #{server_name}" config << " ServerAlias #{server_aliases}" if server_aliases != "" @@ -365,14 +365,12 @@ clients.each{ |c| config << "" config << '# vim:ft=apache:' - sn2 = server_name +'-redir' - throw "Clash on #{sn2} of client#{c['o'][0]}" if files[ c['o'][0] +"-"+ sn2 ] - files[ c['o'][0] +"-"+ sn2 ] = config + files[ c['o'][0] +"-"+ server_name ] += config end # # webstats, part II - we need our own vhost since we can't have suexec enabled unless property['stats'] == "no" - config = [] + config = [''] config << "" config << " ServerName #{server_name}" config << " ServerAdmin #{server_admin}" @@ -394,9 +392,7 @@ clients.each{ |c| config << "" config << '# vim:ft=apache:' - sn2 = server_name +'-stats' - throw "Clash on #{sn2} of client#{c['o'][0]}" if files[ c['o'][0] +"-"+ sn2 ] - files[ c['o'][0] +"-"+ sn2 ] = config + files[ c['o'][0] +"-"+ server_name ] += config end } } -- cgit v1.2.3