Commit a8b52cf4 authored by Bob Vincent's avatar Bob Vincent Committed by Raphaël Pinson
Browse files

Install sendmail alternative on RedHat

parent 7ba3c28a
......@@ -11,4 +11,11 @@ class postfix::service {
hasstatus => true,
restart => $::postfix::params::restart_cmd,
}
if $::osfamily == 'RedHat' {
exec { 'alternatives --set mta /usr/sbin/sendmail.postfix':
require => Service['postfix'],
path => '/bin:/sbin:/usr/bin:/usr/sbin',
unless => 'test /etc/alternatives/mta -ef /usr/sbin/sendmail.postfix',
}
}
}
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