Change the postbootscript permission while copying them to deploy dir

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14775 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
wanghuaz 2013-01-07 08:36:22 +00:00
parent e50efd16db
commit bb01a14476

View File

@ -1813,7 +1813,7 @@ sub create_kitconf
}
}
if ( !($::kit_config->{$s}{entries}[$li]->{$a} =
&cp_to_builddir($se->{$a},$::workdir.'/'.$::buildkit_def{$s}{$a}->{base_dir},$prefix)) ) {
&cp_to_builddir($a,$se->{$a},$::workdir.'/'.$::buildkit_def{$s}{$a}->{base_dir},$prefix)) ) {
return 1;
}
}
@ -1893,6 +1893,7 @@ sub cp_to_builddir
{
my $type = shift;
my $files = shift;
my $from_dir = shift;
my $prefix = shift;
@ -1915,6 +1916,10 @@ sub cp_to_builddir
return;
}
$copied_files .= ",$to_file_base";
if ($type eq 'postbootscripts') {
system("chmod 755 $to_file");
}
}
$copied_files =~ s/^\,//;
return $copied_files;