We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56937e6 commit 3fa04a9Copy full SHA for 3fa04a9
recipes/newrelic/apm/php/debian.yml
@@ -520,7 +520,7 @@ install:
520
#
521
target_ini_dir="/etc/php5/conf.d/"
522
if [ -x /usr/sbin/phpquery ]; then
523
- target_ini_dir="${ini}/../../mods-available/"
+ target_ini_dir="${ini}"
524
elif [ -x /usr/sbin/php5endmod ]; then
525
target_ini_dir="/etc/php5/mods-available/"
526
fi
@@ -533,7 +533,10 @@ install:
533
# This ensures we always get the most up to date newrelic.ini file on the
534
# system.
535
536
- mv ${ini_full_name} ${target_ini_dir}
+
537
+ if [ ! -f "${target_ini_dir}/$(basename ${ini_full_name})" ]; then
538
+ mv "${ini_full_name}" "${target_ini_dir}"
539
+ fi
540
541
542
# We rely on the package installer to enable the newrelic module.
0 commit comments