Skip to content

Commit 4a6fc8b

Browse files
authored
Add an option to install the newrelic daemon too (#911)
1 parent d15d7f0 commit 4a6fc8b

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,7 @@ Here's the list of all the supported environment variables:
418418
| 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 |
419419
| pspell | `IPE_ASPELL_LANGUAGES='...'` | Configure the languages to be made available (for example: `IPE_ASPELL_LANGUAGES='en fr'`). If omitted, we'll assume `en` |
420420
| | `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 |
421+
| newrelic | `IPE_NEWRELIC_DAEMON=1` | Install the NewRelic daemon |
421422
| newrelic | `NR_INSTALL_KEY` | Your New Relic license key |
422423

423424
## Special requirements

install-php-extensions

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2377,6 +2377,11 @@ installNewRelic() {
23772377
installNewRelic_src="$(getPackageSource "$installNewRelic_url")"
23782378
cd -- "$installNewRelic_src"
23792379
NR_INSTALL_USE_CP_NOT_LN=1 NR_INSTALL_SILENT=1 ./newrelic-install install
2380+
case "${IPE_NEWRELIC_DAEMON:-}" in
2381+
1 | y* | Y*)
2382+
NR_INSTALL_USE_CP_NOT_LN=1 NR_INSTALL_SILENT=1 ./newrelic-install install_daemon
2383+
;;
2384+
esac
23802385
cd - >/dev/null
23812386
cat <<EOT
23822387
NewRelic has been installed from $installNewRelic_url

0 commit comments

Comments
 (0)