]> gitweb.fluxo.info Git - puppet-postfix.git/commitdiff
Remove bashism.
authorintrigeri <intrigeri@boum.org>
Tue, 14 Dec 2010 20:44:04 +0000 (21:44 +0100)
committerintrigeri <intrigeri@boum.org>
Tue, 14 Dec 2010 20:44:04 +0000 (21:44 +0100)
In POSIX, string equality is tested using '='.

manifests/definitions/config.pp

index aaf73b56836e7b6b362881a6f30e660fe2447038..8e203a666f78a0c2f2a08b337ce83292807673d1 100644 (file)
@@ -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"],