Correct the permissions of scripts in archives of boot distribution

Closes gh-14158
This commit is contained in:
Andy Wilkinson
2018-09-11 20:09:20 +01:00
parent e84d6cd95b
commit 630e2d0b41
3 changed files with 46 additions and 1 deletions

View File

@@ -80,7 +80,7 @@ final class ApplicationPluginAction implements PluginApplicationAction {
bootStartScripts.getConventionMapping().map("defaultJvmOpts",
applicationConvention::getApplicationDefaultJvmArgs);
CopySpec binCopySpec = project.copySpec().into("bin").from(bootStartScripts);
binCopySpec.setFileMode(0x755);
binCopySpec.setFileMode(0755);
distribution.getContents().with(binCopySpec);
}