#!/bin/bash

# envplate the newrelic ini file
ep /usr/local/etc/php/conf.d/newrelic.disable

# enable newrelic only if XDEBUG_ENABLE is set
if [ ${XDEBUG_ENABLE+x} ]; then
  mv /usr/local/etc/php/conf.d/newrelic.disable /usr/local/etc/php/conf.d/newrelic.ini
fi

#!/bin/bash

# envplate the newrelic ini file
ep /usr/local/etc/php/conf.d/newrelic.disable

# enable newrelic
mv /usr/local/etc/php/conf.d/newrelic.disable /usr/local/etc/php/conf.d/newrelic.ini

--- 
+++ 
@@ -3,7 +3,5 @@
 # envplate the newrelic ini file
 ep /usr/local/etc/php/conf.d/newrelic.disable
 
-# enable newrelic only if XDEBUG_ENABLE is set
-if [ ${XDEBUG_ENABLE+x} ]; then
-  mv /usr/local/etc/php/conf.d/newrelic.disable /usr/local/etc/php/conf.d/newrelic.ini
-fi
+# enable newrelic
+mv /usr/local/etc/php/conf.d/newrelic.disable /usr/local/etc/php/conf.d/newrelic.ini
Enable newrelic only if XDEBUG_ENABLE is set.
