From 8982aa7621c4182822c57a4cf50b966fa9ec3570 Mon Sep 17 00:00:00 2001 From: Luis Buriola Date: Tue, 4 Apr 2017 14:38:35 +0100 Subject: [PATCH] More reliable way to manage ${postfixdir}/${title}.db https://github.com/thias/puppet-postfix/issues/113 --- manifests/dbfile.pp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/manifests/dbfile.pp b/manifests/dbfile.pp index c816f96..744810c 100644 --- a/manifests/dbfile.pp +++ b/manifests/dbfile.pp @@ -50,9 +50,9 @@ } else { exec { "${postmap} ${title}": - cwd => $postfixdir, - subscribe => File["${postfixdir}/${title}"], - refreshonly => true, + cwd => $postfixdir, + subscribe => File["${postfixdir}/${title}"], + creates => "${postfixdir}/${title}.db". # No need to notify the service, since it detects changed files }