From 710b2076c59b9243d9ae07e1b6643dd164ba8ebc Mon Sep 17 00:00:00 2001 From: Martijn Laarman Date: Thu, 5 Sep 2024 15:44:32 +0200 Subject: [PATCH] ensure we set executable filemode on bash scripts we ship (#153) --- build/scripts/Packaging.fs | 5 +++++ src/Elastic.OpenTelemetry.AutoInstrumentation/instrument.sh | 0 2 files changed, 5 insertions(+) mode change 100644 => 100755 src/Elastic.OpenTelemetry.AutoInstrumentation/instrument.sh diff --git a/build/scripts/Packaging.fs b/build/scripts/Packaging.fs index 16b498e..5290a55 100644 --- a/build/scripts/Packaging.fs +++ b/build/scripts/Packaging.fs @@ -147,6 +147,11 @@ let stageInstallationBashScript () = let elasticInstall = distroFile installScript File.WriteAllText(elasticInstall.FullName, contents) + let permissions = + UnixFileMode.UserRead ||| UnixFileMode.UserWrite ||| UnixFileMode.UserExecute + ||| UnixFileMode.GroupRead ||| UnixFileMode.GroupWrite ||| UnixFileMode.GroupExecute + ||| UnixFileMode.OtherRead ||| UnixFileMode.OtherWrite ||| UnixFileMode.OtherExecute + File.SetUnixFileMode(elasticInstall.FullName, permissions); let stageInstallationPsScript () = let installScript = downloadFileInfo "OpenTelemetry.DotNet.Auto.psm1" diff --git a/src/Elastic.OpenTelemetry.AutoInstrumentation/instrument.sh b/src/Elastic.OpenTelemetry.AutoInstrumentation/instrument.sh old mode 100644 new mode 100755