Skip to content

Commit 48c933f

Browse files
fix(php): used extended regular expressions
1 parent 8aaa429 commit 48c933f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

recipes/newrelic/apm/php/debian.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,8 +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
518+
LICENSE_KEY="{{.NEW_RELIC_LICENSE_KEY}}"
519+
sed -i -E "s/newrelic.license = \"(REPLACE_WITH_REAL_KEY|)\"/newrelic.license = \"${NEW_RELIC_LICENSE_KEY}\"/" $ini_full_name
520520
if [ "{{.NEW_RELIC_REGION}}" = "STAGING" ]; then
521521
sed -i 's/;newrelic.daemon.collector_host = ""/newrelic.daemon.collector_host = "staging-collector.newrelic.com"/' $ini_full_name
522522
sed -i 's/;newrelic.loglevel = "info"/newrelic.loglevel = "verbosedebug"/' $ini_full_name

0 commit comments

Comments
 (0)