summaryrefslogtreecommitdiffstats
path: root/tools/centos-img-modify.sh
diff options
context:
space:
mode:
authorAlex Yang <yangyang1@zte.com.cn>2017-12-26 03:44:35 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-12-26 03:44:35 +0000
commit26df202d264c46e13ccbf0ab9502e7b48c73d1cf (patch)
treeb6dbf82e335bdf27e41209795a0f61a4bdc8890f /tools/centos-img-modify.sh
parent6c6d834baf09bfe58266d58a84b1cd85dbd5e249 (diff)
parentb9ed9708b534dba3ffb16ba9a302c25e89de045b (diff)
Merge "Use deployserver's timezone in daisy VM"
Diffstat (limited to 'tools/centos-img-modify.sh')
-rwxr-xr-xtools/centos-img-modify.sh5
1 files changed, 5 insertions, 0 deletions
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