From 802d96d9444bd3e8fd8c850dc14e02ef4691f2be Mon Sep 17 00:00:00 2001 From: "Sonu Kr. Meena" Date: Thu, 9 Feb 2017 19:37:04 +0530 Subject: [PATCH] fix for ubuntu >= 16.04 --- metadata.rb | 2 +- recipes/debian.rb | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/metadata.rb b/metadata.rb index 76a044b..6678d87 100644 --- a/metadata.rb +++ b/metadata.rb @@ -3,7 +3,7 @@ maintainer_email "larry@L2G.to" license "Apache 2.0" description "Configure the system timezone on *ix systems" -version "0.2.9992" +version "0.2.9993" replaces "timezone" diff --git a/recipes/debian.rb b/recipes/debian.rb index aaff585..5aeb16c 100644 --- a/recipes/debian.rb +++ b/recipes/debian.rb @@ -13,6 +13,10 @@ TIMEZONE_FILE = '/etc/timezone' +file '/etc/localtime' do + action :delete +end + template TIMEZONE_FILE do source "timezone.conf.erb" owner 'root'