Explorar el Código

Fix php.ini path on multiphp setup

Robert Zollner hace 6 años
padre
commit
4d5ce01b99
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      bin/v-list-sys-php-config

+ 2 - 1
bin/v-list-sys-php-config

@@ -62,7 +62,8 @@ csv_list() {
 config_path=$(find /etc/php* -name php.ini)
 config_count=$(echo "$config_path" |wc -l)
 if [ "$config_count" -gt 1  ]; then
-    if [ "$WEB_SYSTEM" = "nginx" ]; then
+    multiphp_versions=$(ls -d /etc/php/*/fpm/pool.d 2>/dev/null |wc -l)
+    if [ "$WEB_BACKEND" = 'php-fpm' ] || [ "$multiphp_versions" -gt 0 ] ; then
         config_path=$(echo "$config_path"| grep fpm)
     else
         config_path=$(echo "$config_path"| grep apache)