From b3dcbc8ab10f3e2617f6779a1cebac8068d4a531 Mon Sep 17 00:00:00 2001 From: DevFreddy Date: Wed, 23 Dec 2020 12:24:19 -0500 Subject: [PATCH] fix(infra-agent): use tee to write to newrelic-infra file --- recipes/newrelic/infra-agent/suse.yml | 2 +- recipes/newrelic/infra-agent/ubuntu.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/newrelic/infra-agent/suse.yml b/recipes/newrelic/infra-agent/suse.yml index b6360878a..c17f82543 100644 --- a/recipes/newrelic/infra-agent/suse.yml +++ b/recipes/newrelic/infra-agent/suse.yml @@ -39,7 +39,7 @@ install: fi sudo touch /etc/newrelic-infra.yml; - | - echo -e "license_key: {{.NEW_RELIC_LICENSE_KEY}}" >> /etc/newrelic-infra.yml + echo -e "license_key: {{.NEW_RELIC_LICENSE_KEY}}" | sudo tee -a /etc/newrelic-infra.yml > /dev/null install_infra: cmds: diff --git a/recipes/newrelic/infra-agent/ubuntu.yml b/recipes/newrelic/infra-agent/ubuntu.yml index 598e8bdb7..1800c6395 100644 --- a/recipes/newrelic/infra-agent/ubuntu.yml +++ b/recipes/newrelic/infra-agent/ubuntu.yml @@ -43,7 +43,7 @@ install: fi sudo touch /etc/newrelic-infra.yml; - | - echo -e "license_key: {{.NEW_RELIC_LICENSE_KEY}}" >> /etc/newrelic-infra.yml + echo -e "license_key: {{.NEW_RELIC_LICENSE_KEY}}" | sudo tee -a /etc/newrelic-infra.yml > /dev/null install_infra: cmds: