summaryrefslogtreecommitdiffstats
path: root/tools/centos-img-modify.sh
diff options
context:
space:
mode:
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