Commit 4d569c54 authored by Chris Denneen's avatar Chris Denneen Committed by Raphaël Pinson

Moved Exec['newaliases'] to services so it could be run after service restart

parent 68380615
......@@ -52,13 +52,6 @@ class postfix::files {
seltype => $postfix::params::aliasesseltype,
}
# Aliases
exec { 'newaliases':
command => '/usr/bin/newaliases',
refreshonly => true,
subscribe => File['/etc/aliases'],
}
# Config files
if $mastercf_source {
$mastercf_content = undef
......
......@@ -11,6 +11,13 @@ class postfix::service {
hasstatus => true,
restart => $::postfix::params::restart_cmd,
}
# Aliases
exec { 'newaliases':
command => '/usr/bin/newaliases',
refreshonly => true,
subscribe => File['/etc/aliases'],
require => Service['postfix'],
}
if $::osfamily == 'RedHat' {
alternatives { 'mta':
path => '/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