diff --git a/src/Agent.Worker/JobExtension.cs b/src/Agent.Worker/JobExtension.cs index 25fd18f996..ad3eb3320a 100644 --- a/src/Agent.Worker/JobExtension.cs +++ b/src/Agent.Worker/JobExtension.cs @@ -583,6 +583,9 @@ private string GenerateAZCLIDowngradeScript() File.WriteAllText(downgradeScript, template); + var unixUtil = HostContext.CreateService(); + unixUtil.ChmodAsync("755", downgradeScript).GetAwaiter().GetResult(); + return downgradeScript; }