Skip to content

Commit b44f1f7

Browse files
committed
Merge branch 'release/0.9.7'
2 parents c9b0f7d + 15f7162 commit b44f1f7

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

build/newrelic.sh

+11-6
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,16 @@
33
# Fail on error
44
#set -e
55

6-
echo "Enabling APM metrics for ${NR_APP_NAME}"
7-
newrelic-install install
6+
if [ "$NR_INSTALL_KEY" = "**ChangeMe**" ]; then
7+
echo "Skipping New Relic Setup..."
8+
else
9+
echo "New Relic NR_INSTALL_KEY detected..."
10+
echo "Enabling APM metrics for ${NR_APP_NAME}"
11+
newrelic-install install
812

9-
# Update the application name
10-
sed -i "s/newrelic.appname = \"PHP Application\"/newrelic.appname = \"${NR_APP_NAME}\"/" /etc/php5/fpm/conf.d/newrelic.ini
13+
# Update the application name
14+
sed -i "s/newrelic.appname = \"PHP Application\"/newrelic.appname = \"${NR_APP_NAME}\"/" /etc/php5/fpm/conf.d/newrelic.ini
1115

12-
# Remove extra new relic config file (causes log spamming)
13-
rm /etc/php5/cli/conf.d/newrelic.ini
16+
# Remove extra new relic config file (causes log spamming)
17+
rm /etc/php5/cli/conf.d/newrelic.ini
18+
fi

0 commit comments

Comments
 (0)