diff options
author | Peter Palfrader <peter@palfrader.org> | 2013-03-18 16:32:30 +0000 |
---|---|---|
committer | weasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede> | 2013-03-18 16:32:30 +0000 |
commit | 41df3d7398ee7e23ed65eb61f375fce1a6d688e8 (patch) | |
tree | 1f3a8a107890e881f52f6d1171f3d7372d9006e0 /bin/ldap2apache | |
parent | 583856baee32d5f4f0e3adaa5638e2cc86c0a6f1 (diff) |
Fewer extra files
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@599 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
Diffstat (limited to 'bin/ldap2apache')
-rwxr-xr-x | bin/ldap2apache | 12 |
1 files 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 << "</VirtualHost>" 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 << "<VirtualHost #{@statsbind}>" config << " ServerName #{server_name}" config << " ServerAdmin #{server_admin}" @@ -394,9 +392,7 @@ clients.each{ |c| config << "</VirtualHost>" 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 } } |