Copy postscript with correct permissions

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3193 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
nott 2009-04-14 17:07:10 +00:00
parent e95f91b176
commit ee79fb1cc1
2 changed files with 2 additions and 2 deletions

View File

@ -137,7 +137,7 @@ sub setupAIXsn
}
# copy the postscripts to /install/postscripts
if (&runcmd("cp -R /xcatpost/* /install/postscripts > /dev/null 2>&1") != 0 ) {
if (&runcmd("cp -p -R /xcatpost/* /install/postscripts > /dev/null 2>&1") != 0 ) {
$msg = "$::sdate servicenode: Could not copy postscripts to /install/postscripts.\n";
`logger -t xcat $msg`;
}

View File

@ -96,7 +96,7 @@ if ( !(-f "/xcatpost/xcataixpost") || $::opt_c ) {
}
if ((@ARGV==0) || ($ARGV[0] != 2)) {
$cpcmd = "cp -r /xcatmnt/* /xcatpost 2>/dev/null";
$cpcmd = "cp -p -R /xcatmnt/* /xcatpost 2>/dev/null";
} else {
# when argv[1]=2, there is only one postscript file,
# user wants only download it to save time