X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/3a4b1c2078cd515e93a5f1bf8967f380fbd1646f..5edb7d039cf0dc0c9dd90804c59d3fd87b318629:/cookbooks/sysctl/recipes/default.rb diff --git a/cookbooks/sysctl/recipes/default.rb b/cookbooks/sysctl/recipes/default.rb index 7a0ed4357..562504835 100644 --- a/cookbooks/sysctl/recipes/default.rb +++ b/cookbooks/sysctl/recipes/default.rb @@ -42,7 +42,7 @@ end node[:sysctl].each_value do |group| group[:parameters].each do |key, value| - sysctl_file = "/proc/sys/#{key.gsub('.', '/')}" + sysctl_file = "/proc/sys/#{key.tr('.', '/')}" file sysctl_file do content "#{value}\n"