summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2011-10-08 23:44:15 +0200
committermh <mh@immerda.ch>2011-10-08 23:44:15 +0200
commit968676d43da076d4ecc9d33c4a5f8a2fb532285c (patch)
tree89f8795c5079e06fdb0f391e3b787e83cbd512af /templates
parent85a551f74b55a838fe3f4fa63bc104f74605f3d4 (diff)
pass php_settings to fcgid-starter and only set them in vhost, if we don't run as fgcid
Diffstat (limited to 'templates')
-rw-r--r--templates/vhosts/partials/php_settings.erb26
1 files changed, 14 insertions, 12 deletions
diff --git a/templates/vhosts/partials/php_settings.erb b/templates/vhosts/partials/php_settings.erb
index 8d4fec4..acc81f7 100644
--- a/templates/vhosts/partials/php_settings.erb
+++ b/templates/vhosts/partials/php_settings.erb
@@ -1,17 +1,19 @@
-<% php_settings.each do |key,value|
- dvalue = value.to_s.downcase
- munged_value = if dvalue == 'true'
- 'on'
- elsif dvalue == 'false'
- 'off'
- elsif ['on','off'].include?(dvalue)
- dvalue
- else
- value
- end
- if ['on','off' ].include?(munged_value) -%>
+<% if run_mode != 'fcgid'
+ php_settings.each do |key,value|
+ dvalue = value.to_s.downcase
+ munged_value = if dvalue == 'true'
+ 'on'
+ elsif dvalue == 'false'
+ 'off'
+ elsif ['on','off'].include?(dvalue)
+ dvalue
+ else
+ value
+ end
+ if ['on','off' ].include?(munged_value) -%>
php_admin_flag <%= key %> <%= munged_value %>
<% else -%>
php_admin_value <%= key %> <%= munged_value %>
<% end -%>
+<% end -%>
<% end -%> \ No newline at end of file