From 52ea26af550fbc6289f3ea5e003b21d1d267775e Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 8 Jun 2018 15:34:26 +0100 Subject: [PATCH] Make timezone configuration actually work --- cookbooks/ntp/recipes/default.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 -- 2.43.2