Skip to content

Commit

Permalink
chore(php): corrected the php.ini dir
Browse files Browse the repository at this point in the history
  • Loading branch information
shashank-reddy-nr committed Nov 6, 2024
1 parent 570f405 commit 9608924
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions recipes/newrelic/apm/php/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 9608924

Please sign in to comment.