From b9ed9708b534dba3ffb16ba9a302c25e89de045b Mon Sep 17 00:00:00 2001 From: Alex Yang Date: Thu, 14 Dec 2017 15:39:25 +0800 Subject: Use deployserver's timezone in daisy VM Change-Id: Ie58af69f444924494d1a2949ba894ae55da7efc9 Signed-off-by: Alex Yang --- tools/centos-img-modify.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tools/centos-img-modify.sh') diff --git a/tools/centos-img-modify.sh b/tools/centos-img-modify.sh index 31f122fb..fe35126b 100755 --- a/tools/centos-img-modify.sh +++ b/tools/centos-img-modify.sh @@ -63,3 +63,8 @@ cat << EOF > /etc/cloud/cloud.cfg.d/default.cfg disable_root: False ssh_pwauth: True EOF + +cd /etc +if [ ! -z $localtime_file ] && [ -f $localtime_file ]; then + ln -s -f $localtime_file /etc/localtime +fi -- cgit 1.2.3-korg