diff options
author | intrigeri <intrigeri@boum.org> | 2010-12-14 21:44:04 +0100 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2010-12-14 21:44:04 +0100 |
commit | 2f37d6cc9dafa6370deaa6b7e7017981a9b9f05f (patch) | |
tree | 003e3f2874e83e8de21589af3e9413cb379a50cc | |
parent | 8ce9ae825993934113cc24d80428292aaf47b824 (diff) | |
download | puppet-postfix-2f37d6cc9dafa6370deaa6b7e7017981a9b9f05f.tar.gz puppet-postfix-2f37d6cc9dafa6370deaa6b7e7017981a9b9f05f.tar.bz2 |
Remove bashism.
In POSIX, string equality is tested using '='.
-rw-r--r-- | manifests/definitions/config.pp | 4 |
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"], |