File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments