From fafb433f97e8285170d662cae36d42eb13625449 Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Mon, 10 Jun 2024 23:14:49 +0200 Subject: [PATCH] Delete newrelic install logs (#928) --- README.md | 1 + install-php-extensions | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/README.md b/README.md index eb29b2f..0117738 100644 --- a/README.md +++ b/README.md @@ -421,6 +421,7 @@ Here's the list of all the supported environment variables: | pspell | `IPE_ASPELL_LANGUAGES='...'` | Configure the languages to be made available (for example: `IPE_ASPELL_LANGUAGES='en fr'`). If omitted, we'll assume `en` | | | `IPE_DEB_ARCHIVE` & `IPE_DEB_ARCHIVE_SECURITY` | The APT packages of very old Debian versions (eg Jessie) may have been archived: you can use these environment variables to specify custom URLs of these APT archives | | newrelic | `IPE_NEWRELIC_DAEMON=1` | Install the NewRelic daemon | +| newrelic | `IPE_NEWRELIC_KEEPLOG=1` | Keep the log files of NewRelic setup (`/tmp/nrinstall-….tar`) | | newrelic | `NR_INSTALL_KEY` | Your New Relic license key | ## Special requirements diff --git a/install-php-extensions b/install-php-extensions index 976b349..eccef22 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -2447,6 +2447,12 @@ installNewRelic() { NR_INSTALL_USE_CP_NOT_LN=1 NR_INSTALL_SILENT=1 ./newrelic-install install_daemon ;; esac + case "${IPE_NEWRELIC_KEEPLOG:-}" in + 1 | y* | Y*) ;; + *) + rm -f /tmp/nrinstall-*.tar + ;; + esac cd - >/dev/null cat <