- if ["user","administrator"].include?(details[:status])
- user_home = details[:home] || account["home"] || "#{node[:accounts][:home]}/#{name.to_s}"
-
- if File.directory?("#{user_home}/public_html")
- template "/etc/php5/fpm/pool.d/#{name}.conf" do
- source "fpm.conf.erb"
- owner "root"
- group "root"
- mode 0644
- variables :user => name, :port => port
- notifies :reload, "service[php5-fpm]"
- end
+ template "/etc/php/7.0/fpm/pool.d/#{name}.conf" do
+ source "fpm.conf.erb"
+ owner "root"
+ group "root"
+ mode 0o644
+ variables :user => name, :port => port
+ notifies :reload, "service[php7.0-fpm]"
+ end