Hello guys,
I have defined following Ruby if statement in one of my cookbook template file:
if [ "$PHP_VERSION" == "System_Default" ]; then
<% if node['platform'] == 'debian' and node[:platform_version] < "9" -%>
fpmdir="/etc/php5/fpm/pool.d"
<% else -%>
fpmdir="/etc/php/7.0/fpm/pool.d"
<% end -%>
How it is possible that fpmdir variable in Debian10 OS contains string "/etc/php5/fpm/pool.d" and not "/etc/php/7.0/fpm/pool.d"?
I have tried to use ''&&" operator instead of "and" in above ruby block but with same weird result
Version of chef-client: 12.16.42
Thanks for any hint in advance