mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-18 12:20:40 +00:00
EXECUTEALWAYS will only execute syncfile in the syncfile list (#5834)
This commit is contained in:
@ -6313,7 +6313,18 @@ sub run_always_rsync_postscripts
|
||||
|
||||
# build xdsh queue
|
||||
# build host and all scripts to execute
|
||||
push(@{ $dshparms->{'postscripts'}{$postsfile} }, $host);
|
||||
# EXECUTEALWAYS will only execute the syncfile in the syncfile list
|
||||
foreach my $key (keys $$options{'destDir_srcFile'}{$host}) {
|
||||
foreach my $key1 (keys %{ $$options{'destDir_srcFile'}{$host}{$key} }) {
|
||||
my $index = 0;
|
||||
while (my $src_file = $$options{'destDir_srcFile'}{$host}{$key}{$key1}->[$index]) {
|
||||
if ($src_file eq $tmppostfile) {
|
||||
push(@{ $dshparms->{'postscripts'}{$postsfile} }, $host);
|
||||
}
|
||||
$index++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user