Remove bashism.
In POSIX, string equality is tested using '='.
This commit is contained in:
parent
8ce9ae8259
commit
2f37d6cc9d
1 changed files with 2 additions and 2 deletions
|
@ -34,8 +34,8 @@ define postfix::config ($ensure = present, $value, $nonstandard = false) {
|
||||||
present: {
|
present: {
|
||||||
exec {"postconf -e ${name}='${value}'":
|
exec {"postconf -e ${name}='${value}'":
|
||||||
unless => $nonstandard ? {
|
unless => $nonstandard ? {
|
||||||
false => "test \"x$(postconf -h ${name})\" == 'x${value}'",
|
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}'",
|
true => "test \"x$(egrep '^${name} ' /etc/postfix/main.cf | cut -d= -f2 | cut -d' ' -f2)\" = 'x${value}'",
|
||||||
},
|
},
|
||||||
notify => Service["postfix"],
|
notify => Service["postfix"],
|
||||||
require => File["/etc/postfix/main.cf"],
|
require => File["/etc/postfix/main.cf"],
|
||||||
|
|
Loading…
Reference in a new issue