Delete newrelic install logs (#928)

pull/929/head 2.2.16
Michele Locati 2024-06-10 23:14:49 +02:00 committed by GitHub
parent 1e04b3c110
commit fafb433f97
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 0 deletions

View File

@ -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` | | 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 | | | `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_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 | | newrelic | `NR_INSTALL_KEY` | Your New Relic license key |
## Special requirements ## Special requirements

View File

@ -2447,6 +2447,12 @@ installNewRelic() {
NR_INSTALL_USE_CP_NOT_LN=1 NR_INSTALL_SILENT=1 ./newrelic-install install_daemon NR_INSTALL_USE_CP_NOT_LN=1 NR_INSTALL_SILENT=1 ./newrelic-install install_daemon
;; ;;
esac esac
case "${IPE_NEWRELIC_KEEPLOG:-}" in
1 | y* | Y*) ;;
*)
rm -f /tmp/nrinstall-*.tar
;;
esac
cd - >/dev/null cd - >/dev/null
cat <<EOT cat <<EOT
NewRelic has been installed from $installNewRelic_url NewRelic has been installed from $installNewRelic_url