updatenode customized mypostscript.tmpl with ZONENAME lines
This commit is contained in:
parent
eb6d69a76b
commit
7da6bca6d4
@ -618,7 +618,7 @@ sub addexports
|
||||
my $cmd="cat $tmplfile \| grep ZONENAME";
|
||||
my $result = xCAT::Utils->runcmd($cmd, -1);
|
||||
if ($::RUNCMD_RC != 0) { # ZONENAME not in the customized template
|
||||
$cmd = "cp $tmplfile $tmplfile.$$"; # backup the original
|
||||
$cmd = "cp $tmplfile $tmplfile.backup"; # backup the original
|
||||
xCAT::Utils->runcmd($cmd, -1);
|
||||
my $insertstr='ZONENAME=$ZONENAME';
|
||||
my $insertstr2="export ZONENAME";
|
||||
|
Loading…
Reference in New Issue
Block a user