Add path to postfix::config exec command to avoid failure (#3807)

This commit is contained in:
Silvio Rhatto 2012-04-12 22:42:28 -03:00
parent 5c39570cd6
commit bc0d56603e

View file

@ -37,6 +37,7 @@ define postfix::config ($ensure = present, $value, $nonstandard = false) {
false => "test \"x$(postconf -h ${name})\" = 'x${value}'",
true => "test \"x$(egrep '^${name} ' /etc/postfix/main.cf | cut -d= -f2 | cut -d' ' -f2)\" = 'x${value}'",
},
path => "/usr/bin:/usr/sbin/:/bin:/sbin",
notify => Service["postfix"],
require => File["/etc/postfix/main.cf"],
}