Skip to content

Commit b6e1995

Browse files
Update components/datadog/agent/host_macos.go
Co-authored-by: Nicolas Schweitzer <nicolas.schweitzer@datadoghq.com>
1 parent 05fefb0 commit b6e1995

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

components/datadog/agent/host_macos.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func (am *agentMacOSManager) getInstallCommand(version agentparams.PackageVersio
4646

4747
env := strings.Join(exports, " ")
4848
// Retry curl few times
49-
cmd := fmt.Sprintf(`for i in 1 2 3 4 5; do curl -fsSL https://install.datadoghq.com/scripts/install_mac_os.sh -o install-script.sh && break || sleep $((2**$i)); done && for i in 1 2 3; do DD_API_KEY=%%s %%s %[1]s DD_INSTALL_ONLY=true bash install-script.sh && exit 0 || sleep $((2**$i)); done; exit 1`, env)
49+
cmd := fmt.Sprintf(`for i in {1..5}; do curl -fsSL https://install.datadoghq.com/scripts/install_mac_os.sh -o install-script.sh && break || sleep $((2**$i)); done && for i in {1..3}; do DD_API_KEY=%%s %%s %[1]s DD_INSTALL_ONLY=true bash install-script.sh && exit 0 || sleep $((2**$i)); done; exit 1`, env)
5050
// Only the systemdaemon install is supported on macOS, because single user requires to interact with the pop-up.
5151
pulumiCmdStr := pulumi.Sprintf(cmd, apiKey, pulumi.Sprintf("DD_SYSTEMDAEMON_INSTALL=true DD_SYSTEMDAEMON_USER_GROUP=%s:staff", am.host.Username))
5252
return pulumiCmdStr, nil

0 commit comments

Comments
 (0)