From e54dbe69e405c3bc4a54c84548bc897e5d5f08ac Mon Sep 17 00:00:00 2001 From: xq2005 Date: Fri, 5 Jul 2013 07:10:50 +0000 Subject: [PATCH] get the timzone automatic on ubuntu/debian git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16895 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/sbin/xcatconfig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xCAT-server/sbin/xcatconfig b/xCAT-server/sbin/xcatconfig index 16ec88d43..4f51516b9 100755 --- a/xCAT-server/sbin/xcatconfig +++ b/xCAT-server/sbin/xcatconfig @@ -1096,6 +1096,10 @@ sub initDB elsif ( is_lsb_ubuntu() || is_debian() ) { $tz = discover_timezone_ubuntu; + if (!$tz){ + $tz = `cat /etc/timezone`; + chomp $tz; + } } else {