Use `timedatectl` when Ubuntu 20.04.
This commit is contained in:
parent
3b45ffb703
commit
05d7215f76
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue