Skip to content

Commit

Permalink
Delete newrelic install logs (mlocati#928)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlocati authored Jun 10, 2024
1 parent 1e04b3c commit fafb433
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions install-php-extensions
Original file line number Diff line number Diff line change
Expand Up @@ -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 <<EOT
NewRelic has been installed from $installNewRelic_url
Expand Down

0 comments on commit fafb433

Please sign in to comment.