Skip to content

Commit

Permalink
fix(php): overriding license key if it is not correct
Browse files Browse the repository at this point in the history
  • Loading branch information
shashank-reddy-nr committed Nov 11, 2024
1 parent 701b1ff commit 8aaa429
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions recipes/newrelic/apm/php/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8aaa429

Please sign in to comment.