From 05d7215f76f1a045846598b9ca15fdcf9f1e826e Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Sat, 10 Oct 2020 16:07:09 +0900 Subject: [PATCH] Use `timedatectl` when Ubuntu 20.04. --- cookbooks/base/timezone.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/base/timezone.rb b/cookbooks/base/timezone.rb index 2c76108..2d7f899 100644 --- a/cookbooks/base/timezone.rb +++ b/cookbooks/base/timezone.rb @@ -1,5 +1,5 @@ case run_command('grep VERSION_ID /etc/os-release | awk -F\" \'{print $2}\'').stdout.chomp -when "18.04" +when "18.04", "20.04" execute 'timedatectl set-timezone Asia/Tokyo' do not_if 'timedatectl | grep Tokyo' end