File tree 1 file changed +11
-6
lines changed
1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change 3
3
# Fail on error
4
4
# set -e
5
5
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
8
12
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
11
15
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