From 8aaa4298e8779e6cff76643c3ce872edc9ce3d8d Mon Sep 17 00:00:00 2001 From: shashank-reddy-nr Date: Mon, 11 Nov 2024 13:12:40 +0530 Subject: [PATCH] fix(php): overriding license key if it is not correct --- recipes/newrelic/apm/php/debian.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recipes/newrelic/apm/php/debian.yml b/recipes/newrelic/apm/php/debian.yml index b0830e04..5db27000 100644 --- a/recipes/newrelic/apm/php/debian.yml +++ b/recipes/newrelic/apm/php/debian.yml @@ -515,6 +515,8 @@ install: fi sed -i "s/newrelic.appname = \"[^\"]*\"/newrelic.appname = \"${APPLICATION_NAME}\"/" $ini_full_name + NEW_RELIC_LICENSE_KEY="{{.NEW_RELIC_LICENSE_KEY}}" + sed -i "s/newrelic.license = \"\(REPLACE_WITH_REAL_KEY\|\"\)\"/newrelic.license = \"${NEW_RELIC_LICENSE_KEY}\"/" $ini_full_name if [ "{{.NEW_RELIC_REGION}}" = "STAGING" ]; then sed -i 's/;newrelic.daemon.collector_host = ""/newrelic.daemon.collector_host = "staging-collector.newrelic.com"/' $ini_full_name sed -i 's/;newrelic.loglevel = "info"/newrelic.loglevel = "verbosedebug"/' $ini_full_name