crudini icon indicating copy to clipboard operation
crudini copied to clipboard

Parameter not added in the correct location when "include" directives are involved

Open DeLoWaN opened this issue 5 years ago • 1 comments

I'm trying to manipulate php-fpm config files.

On php-fpm.conf, you have a [global] section, and at the end an include=/etc/php/7.0/fpm/pool.d/*.conf.

These additionnal config files contains others section definition.

Problem is, when you want to add a non-already-existing parameter, its get added at the end of the section, namely after the include directive. In the end, this cause the parameter to be added in another section of the config file.

I think this could be easily resolved by adding new parameters right after the the section name, what do you think ?

DeLoWaN avatar Feb 05 '20 14:02 DeLoWaN

Generally one would want to add new parameters to the end of a section. We'd have to figure some way to make it an option

pixelb avatar Feb 06 '20 14:02 pixelb