Docker base images for PHP-FPM

This commit is contained in:
ChiefSoft works
2022-07-31 14:54:16 +00:00
parent 7865c34b7d
commit 5959d57ac3
144 changed files with 19767 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/bin/bash
if [ ! -z ${NEWRELIC_LICENSE+x} ] && [ "$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
chmod u+rw,g+rw,o+rw /var/log/newrelic/newrelic-daemon.log
else
rm -f /usr/local/etc/php/conf.d/newrelic.ini
fi