Skip to content

Commit 98e76dc

Browse files
Revert "chore(php): point direct php ini dir"
1 parent 93909d1 commit 98e76dc

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

recipes/newrelic/apm/php/debian.yml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -458,19 +458,6 @@ install:
458458
#
459459
460460
read -r APPLICATION_NAME < "{{.TMP_INSTALL_DIR}}/{{.USER_INPUT}}"
461-
462-
if [[ "$CLI_INI_DIR" == */mods-available ]]; then
463-
CLI_INI_DIR = "${CLI_INI_DIR}/../cli/conf.d"
464-
fi
465-
if [[ "$WEB_INI_DIR" == */mods-available ]]; then
466-
if [[ -d "${WEB_INI_DIR}/../apache2/conf.d" ]]; then
467-
WEB_INI_DIR="${WEB_INI_DIR}/../apache2/conf.d"
468-
fi
469-
if [[ -d "${WEB_INI_DIR}/../fpm/conf.d" ]]; then
470-
WEB_INI_DIR="${WEB_INI_DIR}/../fpm/conf.d"
471-
fi
472-
fi
473-
474461
INI_DIRS=($WEB_INI_DIR $CLI_INI_DIR)
475462
for dirs in $INI_DIRS; do
476463
for ini in $dirs; do
@@ -533,7 +520,7 @@ install:
533520
#
534521
target_ini_dir="/etc/php5/conf.d/"
535522
if [ -x /usr/sbin/phpquery ]; then
536-
target_ini_dir="${ini}/../../mods-available/"
523+
target_ini_dir="${ini}"
537524
elif [ -x /usr/sbin/php5endmod ]; then
538525
target_ini_dir="/etc/php5/mods-available/"
539526
fi
@@ -547,7 +534,9 @@ install:
547534
# system.
548535
#
549536
550-
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
551540
552541
#
553542
# We rely on the package installer to enable the newrelic module.

0 commit comments

Comments
 (0)