Skip to content

Commit a7266ab

Browse files
authored
Make the createLogPath script executable (DataDog#2911)
1 parent 50bcab0 commit a7266ab

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tracer/build/_build/Build.Steps.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,7 @@ void ExtractDebugInfoAndStripSymbols()
621621

622622
var fpm = Fpm.Value;
623623
var gzip = GZip.Value;
624+
var chmod = Chmod.Value;
624625
var packageName = "datadog-dotnet-apm";
625626

626627
var workingDirectory = ArtifactsDirectory / $"linux-{LinuxArchitectureIdentifier}";
@@ -638,6 +639,10 @@ void ExtractDebugInfoAndStripSymbols()
638639
RenameFile(sourceFile, newName);
639640
}
640641

642+
// somehow the permissions are lost along the way, ensure they are correctly set here
643+
var createLogPathScript = (IsArm64 ? TracerHomeDirectory : MonitoringHomeDirectory) / "createLogPath.sh";
644+
chmod.Invoke("+x " + createLogPathScript);
645+
641646
ExtractDebugInfoAndStripSymbols();
642647

643648
foreach (var packageType in LinuxPackageTypes)

0 commit comments

Comments
 (0)