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

Install sendmail alternative on RedHat

parent 7ba3c28a
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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',
    }
  }
}