Skip to content

Commit 2e8bf6e

Browse files
committed
Fix issue with file permissions in deb and rpm archives
1 parent 47e5efa commit 2e8bf6e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

x-pack/plugin/ml/build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,14 @@ esplugin.bundleSpec.from {
5151
configurations.nativeBundle.files.collect { zipTree(it) }
5252
}
5353

54+
// this is required due to https://github.com/nebula-plugins/gradle-ospackage-plugin/issues/472
55+
// those lib files should not be executable in the first place
56+
esplugin.bundleSpec.filesMatching("platform/**/lib/*") { details ->
57+
details.permissions {
58+
unix(0644)
59+
}
60+
}
61+
5462
// We don't ship the individual nativeBundle licenses - instead
5563
// they get combined into the top level NOTICES file we ship
5664
esplugin.bundleSpec.exclude 'platform/licenses/**'

0 commit comments

Comments
 (0)