Skip to content
Snippets Groups Projects
Commit a8b52cf4 authored by Bob Vincent's avatar Bob Vincent Committed by Raphaël Pinson
Browse files

Install sendmail alternative on RedHat

parent 7ba3c28a
No related branches found
No related tags found
No related merge requests found
...@@ -11,4 +11,11 @@ class postfix::service { ...@@ -11,4 +11,11 @@ class postfix::service {
hasstatus => true, hasstatus => true,
restart => $::postfix::params::restart_cmd, 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',
}
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment