diff --git a/xCAT-server/lib/perl/xCAT/Postage.pm b/xCAT-server/lib/perl/xCAT/Postage.pm index 14870dc6a..b9e69c590 100644 --- a/xCAT-server/lib/perl/xCAT/Postage.pm +++ b/xCAT-server/lib/perl/xCAT/Postage.pm @@ -465,7 +465,7 @@ sub makescript if ($ref1->{'otherpkgdir'}) { push @scriptd, - "OTHERPKGDIR=" . $ref1->{'otherpkgdir'} . "\n"; + "OTHERPKGDIR='" . $ref1->{'otherpkgdir'} . "'\n"; push @scriptd, "export OTHERPKGDIR\n"; } } diff --git a/xCAT-server/lib/perl/xCAT/Template.pm b/xCAT-server/lib/perl/xCAT/Template.pm index 6966970fd..268640ff6 100644 --- a/xCAT-server/lib/perl/xCAT/Template.pm +++ b/xCAT-server/lib/perl/xCAT/Template.pm @@ -1606,7 +1606,7 @@ sub getImageitems_for_node if ($ref1->{'otherpkgdir'}) { $result .= - "OTHERPKGDIR=" . $ref1->{'otherpkgdir'} . "\n"; + "OTHERPKGDIR='" . $ref1->{'otherpkgdir'} . "'\n"; $result .= "export OTHERPKGDIR\n"; } }