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:
parent
e95f91b176
commit
ee79fb1cc1
@ -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`;
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user