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:
parent
bfd8e946be
commit
9959367888
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user