fix check for updatenode

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13561 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2012-08-20 20:39:05 +00:00
parent bfd8e946be
commit 9959367888

View File

@ -241,7 +241,7 @@ 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) {
if ($ARGV[0] != 1 && $ARGV[0] != 2) {
# set the timezone
my $cmd = "cat $scriptname | grep 'TIMEZONE='";
&runcmd($cmd);