Add an option to install the newrelic daemon too (#911)

pull/912/head 2.2.11
Michele Locati 2024-04-16 11:14:12 +02:00 committed by GitHub
parent d15d7f0096
commit 4a6fc8bf6a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View File

@ -418,6 +418,7 @@ Here's the list of all the supported environment variables:
| http, intl, mongodb | `IPE_ICU_EN_ONLY=1` | Some extensions require the ICU library, use this flag to install a smaller, but English-only, ICU library on Alpine 3.16 and later |
| 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 | `NR_INSTALL_KEY` | Your New Relic license key |
## Special requirements

View File

@ -2377,6 +2377,11 @@ installNewRelic() {
installNewRelic_src="$(getPackageSource "$installNewRelic_url")"
cd -- "$installNewRelic_src"
NR_INSTALL_USE_CP_NOT_LN=1 NR_INSTALL_SILENT=1 ./newrelic-install install
case "${IPE_NEWRELIC_DAEMON:-}" in
1 | y* | Y*)
NR_INSTALL_USE_CP_NOT_LN=1 NR_INSTALL_SILENT=1 ./newrelic-install install_daemon
;;
esac
cd - >/dev/null
cat <<EOT
NewRelic has been installed from $installNewRelic_url