diff options
author | mh <mh@immerda.ch> | 2011-10-09 05:13:23 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2011-10-09 05:13:23 +0200 |
commit | 5fd2611fa89bcafaeeb921f58bd495602f664f0c (patch) | |
tree | c77f44b54314d707ac2e91a2c75949aa4081306f /templates | |
parent | 4ef0a3591b5c8ddf651a5f5d5ff0d292b186ceb7 (diff) |
hashs are not sorted, but for idempotence we should sort it
Diffstat (limited to 'templates')
-rw-r--r-- | templates/vhosts/partials/php_settings.erb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/vhosts/partials/php_settings.erb b/templates/vhosts/partials/php_settings.erb index acc81f7..77a4253 100644 --- a/templates/vhosts/partials/php_settings.erb +++ b/templates/vhosts/partials/php_settings.erb @@ -1,6 +1,6 @@ <% if run_mode != 'fcgid' - php_settings.each do |key,value| - dvalue = value.to_s.downcase + php_settings.keys.sort.each do |key| + dvalue = php_settings[value].to_s.downcase munged_value = if dvalue == 'true' 'on' elsif dvalue == 'false' |