Skip to content

Commit 6bbe6aa

Browse files
committed
(feat): não tem mais /scripts/newrelic.ini
1 parent bf2644f commit 6bbe6aa

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

apache-run.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ if [[ ${XDEBUG_ENABLED} == true ]]; then
1818
fi
1919

2020
if [[ ${NR_ENABLED} == true ]]; then
21-
sudo sed -i -e "s/"REPLACE_WITH_REAL_KEY"/${NR_LICENSE_KEY}/g" /scripts/newrelic.ini
22-
sudo sed -i -e "s/PHP Application/${NR_APP_NAME}/g" /scripts/newrelic.ini
23-
sudo cp /scripts/newrelic.ini /usr/local/etc/php/conf.d/newrelic.ini
21+
sudo sed -i -e "s/"REPLACE_WITH_REAL_KEY"/${NR_LICENSE_KEY}/g" /usr/local/etc/php/conf.d/newrelic.ini
22+
sudo sed -i -e "s/PHP Application/${NR_APP_NAME}/g" /usr/local/etc/php/conf.d/newrelic.ini
23+
else
24+
echo "newrelic.enabled = false" | sudo tee -a /usr/local/etc/php/conf.d/newrelic.ini
2425
fi
2526

2627
if [[ ${SESSION_HANDLER} == true ]]; then

0 commit comments

Comments
 (0)