mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-20 02:00:24 +00:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user