]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/ntp/recipes/default.rb
Don't configure a flood_stage watermark for elasticsearch 5.x
[chef.git] / cookbooks / ntp / recipes / default.rb
index 3cefe3c46bd6db6d5db67dbc923bf04185672c24..7be4ab4373f9b6a2657630fa14c22642c1c45c2f 100644 (file)
@@ -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