Skip to content

Commit

Permalink
ensure we set executable filemode on bash scripts we ship
Browse files Browse the repository at this point in the history
  • Loading branch information
Mpdreamz committed Sep 5, 2024
1 parent c40d447 commit af58aaf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build/scripts/Packaging.fs
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Empty file modified src/Elastic.OpenTelemetry.AutoInstrumentation/instrument.sh
100644 → 100755
Empty file.

0 comments on commit af58aaf

Please sign in to comment.