Skip to content

Commit

Permalink
ensure we set executable filemode on bash scripts we ship (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mpdreamz authored Sep 5, 2024
1 parent c40d447 commit 710b207
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 710b207

Please sign in to comment.