Skip to content

Commit 8aaa429

Browse files
fix(php): overriding license key if it is not correct
1 parent 701b1ff commit 8aaa429

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

recipes/newrelic/apm/php/debian.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,8 @@ install:
515515
fi
516516
517517
sed -i "s/newrelic.appname = \"[^\"]*\"/newrelic.appname = \"${APPLICATION_NAME}\"/" $ini_full_name
518+
NEW_RELIC_LICENSE_KEY="{{.NEW_RELIC_LICENSE_KEY}}"
519+
sed -i "s/newrelic.license = \"\(REPLACE_WITH_REAL_KEY\|\"\)\"/newrelic.license = \"${NEW_RELIC_LICENSE_KEY}\"/" $ini_full_name
518520
if [ "{{.NEW_RELIC_REGION}}" = "STAGING" ]; then
519521
sed -i 's/;newrelic.daemon.collector_host = ""/newrelic.daemon.collector_host = "staging-collector.newrelic.com"/' $ini_full_name
520522
sed -i 's/;newrelic.loglevel = "info"/newrelic.loglevel = "verbosedebug"/' $ini_full_name

0 commit comments

Comments
 (0)