We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9e33c8e + 099eda2 commit 11820f9Copy full SHA for 11820f9
images/php-fpm/entrypoints/71-php-newrelic.sh
@@ -1,7 +1,7 @@
1
#!/bin/bash
2
3
-# enable newrelic only if NEWRELIC_ENABLED is set
4
-if [ ${NEWRELIC_ENABLED+x} ]; then
+# enable newrelic only if NEWRELIC_ENABLED is set to true, True, TRUE or any other version of it
+if expr "$NEWRELIC_ENABLED" : '[Tt][Rr][Uu][Ee]' > /dev/null; then
5
# envplate the newrelic ini file
6
ep /usr/local/etc/php/conf.d/newrelic.disable
7
0 commit comments