Skip to content

Commit 11820f9

Browse files
author
Toby Bellwood
authored
Merge pull request #250 from uselagoon/NEWRELIC_ENABLED-only-true
only accept `true` for $NEWRELIC_ENABLED
2 parents 9e33c8e + 099eda2 commit 11820f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

images/php-fpm/entrypoints/71-php-newrelic.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

3-
# enable newrelic only if NEWRELIC_ENABLED is set
4-
if [ ${NEWRELIC_ENABLED+x} ]; then
3+
# enable newrelic only if NEWRELIC_ENABLED is set to true, True, TRUE or any other version of it
4+
if expr "$NEWRELIC_ENABLED" : '[Tt][Rr][Uu][Ee]' > /dev/null; then
55
# envplate the newrelic ini file
66
ep /usr/local/etc/php/conf.d/newrelic.disable
77

0 commit comments

Comments
 (0)