X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/18e12b0e123fc3e5f344682f884feabc12da0f5a..0e35aa17d9ec3a4a10a575ad1f8c380132032b55:/cookbooks/ntp/recipes/default.rb diff --git a/cookbooks/ntp/recipes/default.rb b/cookbooks/ntp/recipes/default.rb index 3cefe3c46..7be4ab437 100644 --- a/cookbooks/ntp/recipes/default.rb +++ b/cookbooks/ntp/recipes/default.rb @@ -32,11 +32,10 @@ execute "dpkg-reconfigure-tzdata" do group "root" end -file "/etc/timezone" do +link "/etc/localtime" do + to "/usr/share/zoneinfo/#{node[:tz]}" owner "root" group "root" - mode 0o644 - content "#{node[:tz]}\n" notifies :run, "execute[dpkg-reconfigure-tzdata]", :immediately end