Skip to content

Commit

Permalink
Merge pull request #179 from jimdelois/fix/new-relic-startup
Browse files Browse the repository at this point in the history
Aligning Env Var Existence Checks in New Relic Startup
  • Loading branch information
bryanlatten authored Dec 16, 2021
2 parents a9019f7 + d4214bb commit 86aa289
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion container/root/run.d/07-newrelic.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# When both App ID and license are provided, automatically enable extension
if [ $REPLACE_NEWRELIC_APP ] && [ $REPLACE_NEWRELIC_LICENSE ]
if [[ $REPLACE_NEWRELIC_APP ]] && [[ $REPLACE_NEWRELIC_LICENSE ]]
then
echo "[newrelic] enabling APM metrics for ${REPLACE_NEWRELIC_APP}"
sed -i 's/;extension\s\?=/extension =/' $CONF_PHPMODS/newrelic.ini
Expand Down

0 comments on commit 86aa289

Please sign in to comment.