From 5d9960ae6b440f7f111a45f984930c1bb366a5e1 Mon Sep 17 00:00:00 2001 From: Ossi Herrala Date: Mon, 13 Feb 2012 13:49:06 +0000 Subject: [PATCH] Run generate-procmail in proper shell environment --- procmail/manifests/init.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/procmail/manifests/init.pp b/procmail/manifests/init.pp index 41680c0..11f203d 100644 --- a/procmail/manifests/init.pp +++ b/procmail/manifests/init.pp @@ -29,7 +29,7 @@ class procmail { } exec { "generate-procmailrc": - command => '( echo "DROPPRIVS=yes" ; find /etc/procmailrc.d/*.rc -exec echo "INCLUDERC={}" \; ) > /etc/procmailrc ; true', + command => '/bin/sh -c -- \'umask 022; ( echo "DROPPRIVS=yes" ; find /etc/procmailrc.d/*.rc -exec echo "INCLUDERC={}" \; ) > /etc/procmailrc ; true\'', path => "/bin:/usr/bin:/sbin:/usr/sbin", refreshonly => true, }