File tree Expand file tree Collapse file tree 1 file changed +4
-15
lines changed Expand file tree Collapse file tree 1 file changed +4
-15
lines changed Original file line number Diff line number Diff line change @@ -458,19 +458,6 @@ install:
458
458
#
459
459
460
460
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
-
474
461
INI_DIRS=($WEB_INI_DIR $CLI_INI_DIR)
475
462
for dirs in $INI_DIRS; do
476
463
for ini in $dirs; do
@@ -533,7 +520,7 @@ install:
533
520
#
534
521
target_ini_dir="/etc/php5/conf.d/"
535
522
if [ -x /usr/sbin/phpquery ]; then
536
- target_ini_dir="${ini}/../../mods-available/ "
523
+ target_ini_dir="${ini}"
537
524
elif [ -x /usr/sbin/php5endmod ]; then
538
525
target_ini_dir="/etc/php5/mods-available/"
539
526
fi
@@ -547,7 +534,9 @@ install:
547
534
# system.
548
535
#
549
536
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
551
540
552
541
#
553
542
# We rely on the package installer to enable the newrelic module.
You can’t perform that action at this time.
0 commit comments