Files
WrenchBoradWeb/docker-php-fpm/5.6/scripts/newrelic.sh
T
2022-07-31 14:54:16 +00:00

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