Skip to content

Commit 3fa04a9

Browse files
fix(php): fixed php guided install failure
1 parent 56937e6 commit 3fa04a9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

recipes/newrelic/apm/php/debian.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ install:
520520
#
521521
target_ini_dir="/etc/php5/conf.d/"
522522
if [ -x /usr/sbin/phpquery ]; then
523-
target_ini_dir="${ini}/../../mods-available/"
523+
target_ini_dir="${ini}"
524524
elif [ -x /usr/sbin/php5endmod ]; then
525525
target_ini_dir="/etc/php5/mods-available/"
526526
fi
@@ -533,7 +533,10 @@ install:
533533
# This ensures we always get the most up to date newrelic.ini file on the
534534
# system.
535535
#
536-
mv ${ini_full_name} ${target_ini_dir}
536+
537+
if [ ! -f "${target_ini_dir}/$(basename ${ini_full_name})" ]; then
538+
mv "${ini_full_name}" "${target_ini_dir}"
539+
fi
537540
538541
#
539542
# We rely on the package installer to enable the newrelic module.

0 commit comments

Comments
 (0)