X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/3a4b1c2078cd515e93a5f1bf8967f380fbd1646f..dc164e4263915286120bca9035e0a6184bed1afd:/cookbooks/sysfs/recipes/default.rb diff --git a/cookbooks/sysfs/recipes/default.rb b/cookbooks/sysfs/recipes/default.rb index 0e59c1e1e..d046b1f36 100644 --- a/cookbooks/sysfs/recipes/default.rb +++ b/cookbooks/sysfs/recipes/default.rb @@ -8,7 +8,7 @@ # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 +# https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, @@ -28,7 +28,7 @@ template "/etc/sysfs.conf" do source "sysfs.conf.erb" owner "root" group "root" - mode 0644 + mode 0o644 notifies :restart, "service[sysfsutils]" end @@ -39,6 +39,7 @@ node[:sysfs].each_value do |group| file sysfs_file do content "#{value}\n" atomic_update false + ignore_failure true only_if { File.exist?(sysfs_file) } end end