Commit e5e5c5b5 authored by Stefan Galinski's avatar Stefan Galinski 🎮
Browse files

[FEATURE] Support configurable PHP version

parent 2b036dcb
......@@ -88,13 +88,13 @@ end
if node['platform_version'] == '16.04'
replace_or_add 'change sendmail in the apache2 php configuration for mailcatcher' do
path '/etc/php/7.0/apache2/php.ini'
path '/etc/php/' + node['ubuntu_base']['php_version'] + '/apache2/php.ini'
pattern '.*sendmail_path =.*'
line 'sendmail_path = "/usr/bin/env catchmail"'
end
replace_or_add 'change sendmail in the apache2 php configuration for mailcatcher' do
path '/etc/php/7.0/cli/php.ini'
path '/etc/php/' + node['ubuntu_base']['php_version'] + '/cli/php.ini'
pattern '.*sendmail_path =.*'
line 'sendmail_path = "/usr/bin/env catchmail"'
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment