diff --git a/xCAT/postscripts/xcataixpost b/xCAT/postscripts/xcataixpost index 091f5026b..53a5ead06 100755 --- a/xCAT/postscripts/xcataixpost +++ b/xCAT/postscripts/xcataixpost @@ -239,26 +239,21 @@ if (&runcmd($chcmd) != 0) { } if (-f $scriptname) { - # if called by updatenode do not change TZ - if (@ARGV > 0) { - if ($ARGV[0] != 1 && $ARGV[0] != 2) { # set the timezone - my $cmd = "cat $scriptname | grep 'TIMEZONE='"; - &runcmd($cmd); - my $TZline = $::outref; - my ($junk, $tz) = split(/=/, $TZline); - if ($tz) { + my $cmd = "cat $scriptname | grep 'TIMEZONE='"; + &runcmd($cmd); + my $TZline = $::outref; + my ($junk, $tz) = split(/=/, $TZline); + if ($tz) { chomp $tz; my $tzcmd = qq~/usr/bin/chtz $tz >/dev/null 2>&1~; if (&runcmd($tzcmd) != 0) { my $msg = "$::sdate xcataixpost: Could not set timezone.\n"; `logger -t xcat -p local4.warning $msg`; } else { - &runcmd("export TZ=$tz"); - } - } + &runcmd("export TZ=$tz"); + } } - } } # check & run the postscript