aboutsummaryrefslogtreecommitdiff
path: root/manifests/definitions/config.pp
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2010-12-14 21:44:04 +0100
committerintrigeri <intrigeri@boum.org>2010-12-14 21:44:04 +0100
commit2f37d6cc9dafa6370deaa6b7e7017981a9b9f05f (patch)
tree003e3f2874e83e8de21589af3e9413cb379a50cc /manifests/definitions/config.pp
parent8ce9ae825993934113cc24d80428292aaf47b824 (diff)
downloadpuppet-postfix-2f37d6cc9dafa6370deaa6b7e7017981a9b9f05f.tar.gz
puppet-postfix-2f37d6cc9dafa6370deaa6b7e7017981a9b9f05f.tar.bz2
Remove bashism.
In POSIX, string equality is tested using '='.
Diffstat (limited to 'manifests/definitions/config.pp')
-rw-r--r--manifests/definitions/config.pp4
1 files changed, 2 insertions, 2 deletions
diff --git a/manifests/definitions/config.pp b/manifests/definitions/config.pp
index aaf73b5..8e203a6 100644
--- a/manifests/definitions/config.pp
+++ b/manifests/definitions/config.pp
@@ -34,8 +34,8 @@ define postfix::config ($ensure = present, $value, $nonstandard = false) {
present: {
exec {"postconf -e ${name}='${value}'":
unless => $nonstandard ? {
- 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}'",
+ 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}'",
},
notify => Service["postfix"],
require => File["/etc/postfix/main.cf"],