mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-29 17:23:08 +00:00
Merge pull request #447 from tingtli/defect107
fix defect 107 to avoid replacing link files in Automation ENV
This commit is contained in:
commit
6d62fcc3be
@ -405,10 +405,12 @@ sub copy_code {
|
||||
|
||||
#copy xcat-core source code to MN:/
|
||||
if($mn =~ /ubuntux/){
|
||||
$res = system("xdsh $confkeys{$mn} 'mkdir -p /xcatbuild' && scp -r $xcatcoredir root\@$confkeys{$mn}:/xcatbuild/ >/dev/null");
|
||||
#defect 107 Automation ENV replaces the link file to real file before running xcat build
|
||||
$res = system("xdsh $confkeys{$mn} 'mkdir -p /xcatbuild' && rsync -avz $xcatcoredir root\@$confkeys{$mn}:/xcatbuild/ >/dev/null");
|
||||
}else{
|
||||
$res = system("scp -r $xcatcoredir root\@$confkeys{$mn}:/ >/dev/null");
|
||||
}
|
||||
#defect 107 Automation ENV replaces the link file to real file before running xcat build
|
||||
$res = system("rsync -avz $xcatcoredir root\@$confkeys{$mn}:/ >/dev/null");
|
||||
}
|
||||
if ($res){
|
||||
send_msg(0, "[$mn->$confkeys{$mn}][copy_code] copy the latest xcat code to $mn failed");
|
||||
return 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user