From 7da6bca6d458d435a81bef8a39b805c6e7592ce7 Mon Sep 17 00:00:00 2001 From: lissav Date: Thu, 27 Feb 2014 10:55:31 -0500 Subject: [PATCH] updatenode customized mypostscript.tmpl with ZONENAME lines --- xCAT-server/lib/perl/xCAT/Postage.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/perl/xCAT/Postage.pm b/xCAT-server/lib/perl/xCAT/Postage.pm index 4b4f926e9..b0d8f6472 100644 --- a/xCAT-server/lib/perl/xCAT/Postage.pm +++ b/xCAT-server/lib/perl/xCAT/Postage.pm @@ -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";