diff --git a/recipes/newrelic/apm/php/debian.yml b/recipes/newrelic/apm/php/debian.yml index 46c6f3fe..bdf30fc4 100644 --- a/recipes/newrelic/apm/php/debian.yml +++ b/recipes/newrelic/apm/php/debian.yml @@ -470,14 +470,14 @@ install: php_ini_dir=$(echo $ini | sed -n 's/\(.*\)\/conf.d/\1/p') if [ -z "${php_ini_dir}" ]; then if [[ "$dirs" == "$WEB_INI_DIR" ]]; then - if [[ -d "${ini}/../apache2/conf.d" ]]; then - php_ini_dir="${ini}/../apache2/conf.d" + if [[ -d "${ini}/../apache2" ]]; then + php_ini_dir="${ini}/../apache2" fi - if [[ -d "${ini}/../fpm/conf.d" ]]; then - php_ini_dir="${ini}/../fpm/conf.d" + if [[ -d "${ini}/../fpm" ]]; then + php_ini_dir="${ini}/../fpm" fi elif [[ "$dirs" == "$CLI_INI_DIR" ]]; then - php_ini_dir="${php_ini_dir}/../cli/conf.d" + php_ini_dir="${php_ini_dir}/../cli" else echo -e "something went wrong while checking for paths" php_ini_dir=${ini}