Skip to content

Commit 46a93f5

Browse files
committed
fix(install): Adds proper path for running inject script
1 parent 89719ba commit 46a93f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

agent/newrelic-install.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1488,7 +1488,7 @@ install_agent_here() {
14881488
if [ -n "${pi_inidir_cli}" -a ! -f "${pi_inidir_cli}/newrelic.ini" ]; then
14891489
# check if doing old style injection of just "newrelic.license" or if injecting values from env vars
14901490
if [ -n "${NR_CONFIG_WITH_ENVIRON}" ]; then
1491-
if php ./newrelic-install-inject-envvars.php "${ilibdir}/scripts/newrelic.ini.template" "${pi_inidir_cli}/newrelic.ini"; then
1491+
if php "${ilibdir}/newrelic-install-inject-envvars.php" "${ilibdir}/scripts/newrelic.ini.template" "${pi_inidir_cli}/newrelic.ini"; then
14921492
if [ "0" != "$?" ]; then
14931493
istat="failed"
14941494
fi
@@ -1512,7 +1512,7 @@ install_agent_here() {
15121512

15131513
if [ -z "${istat}" -a -n "${pi_inidir_dso}" -a ! -f "${pi_inidir_dso}/newrelic.ini" ]; then
15141514
if [ -n "${NR_CONFIG_WITH_ENVIRON}" ]; then
1515-
if php ./newrelic-install-inject-envvars.php "${ilibdir}/scripts/newrelic.ini.template" "${pi_inidir_dso}/newrelic.ini"; then
1515+
if php "${ilibdir}/newrelic-install-inject-envvars.php" "${ilibdir}/scripts/newrelic.ini.template" "${pi_inidir_dso}/newrelic.ini"; then
15161516
if [ "0" != "$?" ]; then
15171517
istat="failed"
15181518
fi

0 commit comments

Comments
 (0)