From 17829890b4ce9880b550680ebdc958cbfe819cec Mon Sep 17 00:00:00 2001 From: mh Date: Fri, 5 Dec 2008 19:09:40 +0000 Subject: correct decision and made it more logical --- templates/vhosts/perl/CentOS.erb | 2 +- templates/vhosts/php/CentOS.erb | 2 +- templates/vhosts/static/OpenBSD.erb | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'templates/vhosts') diff --git a/templates/vhosts/perl/CentOS.erb b/templates/vhosts/perl/CentOS.erb index 9a7a1dd..be2aa0e 100644 --- a/templates/vhosts/perl/CentOS.erb +++ b/templates/vhosts/perl/CentOS.erb @@ -17,7 +17,7 @@ <%- end -%> /"> AllowOverride <%= allow_override %> - <%- unless options.to_s == 'absent' or not do_includes.to_s == 'true' then -%> + <%- if options.to_s != 'absent' or do_includes.to_s == 'true' then -%> Options <%= options %> <%- if do_includes.to_s == 'true' and not options.include?('+Includes') then -%>+Includes<%- end -%> <%- end -%> <%- unless htpasswd_file.to_s == 'absent' then -%> diff --git a/templates/vhosts/php/CentOS.erb b/templates/vhosts/php/CentOS.erb index 4dbe1f4..2bbb48f 100644 --- a/templates/vhosts/php/CentOS.erb +++ b/templates/vhosts/php/CentOS.erb @@ -12,7 +12,7 @@ /"> AllowOverride <%= allow_override %> - <%- unless options.to_s == 'absent' or not do_includes.to_s == 'true' then -%> + <%- if options.to_s != 'absent' or do_includes.to_s == 'true' then -%> Options <%= options %> <%- if do_includes.to_s == 'true' and not options.include?('+Includes') then -%>+Includes<%- end -%> <%- end -%> <%- unless htpasswd_file.to_s == 'absent' then -%> diff --git a/templates/vhosts/static/OpenBSD.erb b/templates/vhosts/static/OpenBSD.erb index ce5e6b1..798658f 100644 --- a/templates/vhosts/static/OpenBSD.erb +++ b/templates/vhosts/static/OpenBSD.erb @@ -16,7 +16,7 @@ <%- if (options.to_s != 'absent' or htpasswd_file.to_s != 'absent') and not ssl_mode.to_s == 'force' then -%> /"> - <%- unless options.to_s == 'absent' or not do_includes.to_s == 'true' then -%> + <%- if options.to_s != 'absent' or do_includes.to_s == 'true' then -%> Options <%= options %> <%- if do_includes.to_s == 'true' and not options.include?('+Includes') then -%>+Includes<%- end -%> <%- end -%> @@ -48,7 +48,7 @@ CustomLog <%= logdir %>/access_log combined <%- if options.to_s != 'absent' or htpasswd_file.to_s != 'absent' then -%> /"> - <%- unless options.to_s == 'absent' or not do_includes.to_s == 'true' then -%> + <%- if options.to_s != 'absent' or do_includes.to_s == 'true' then -%> Options <%= options %> <%- if do_includes.to_s == 'true' and not options.include?('+Includes') then -%>+Includes<%- end -%> <%- end -%> -- cgit v1.2.3