From ca6e24c1c022abf1b8986228205918a976405fa6 Mon Sep 17 00:00:00 2001 From: Silvio Giebl Date: Wed, 27 Nov 2024 15:30:46 +0100 Subject: [PATCH] oci image > use default "other" file permissions --- build.gradle.kts | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index f10d739..a15d4fb 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -47,14 +47,12 @@ oci { layers { layer("hivemqExtension") { contents { - permissions("opt/hivemq/", 0b111_111_000) - permissions("opt/hivemq/extensions/", 0b111_111_000) + permissions("opt/hivemq/", 0b111_111_101) + permissions("opt/hivemq/extensions/", 0b111_111_101) into("opt/hivemq/extensions") { - filePermissions = 0b110_100_000 // TODO remove, use default - directoryPermissions = 0b111_101_000 // TODO remove, use default - permissions("*/", 0b111_111_000) - permissions("*/dnsdiscovery.properties", 0b110_110_000) - permissions("*/hivemq-extension.xml", 0b110_110_000) + permissions("*/", 0b111_111_101) + permissions("*/dnsdiscovery.properties", 0b110_110_100) + permissions("*/hivemq-extension.xml", 0b110_110_100) from(zipTree(tasks.hivemqExtensionZip.flatMap { it.archiveFile })) } }