8 lines
307 B
Bash
Executable File
8 lines
307 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ ! "$NEWRELIC_LICENSE" == "" ] ; then
|
|
echo "env NEWRELIC_LICENSE: setting up newrelic license"
|
|
sed -i "s/REPLACE_WITH_REAL_KEY/$NEWRELIC_LICENSE/g" /usr/local/etc/php/conf.d/newrelic.ini
|
|
nrsysmond-config --set license_key=$NEWRELIC_LICENSE
|
|
service newrelic-sysmond start > /dev/null
|
|
fi |