From: Peter Palfrader Date: Wed, 20 Jun 2012 08:59:36 +0000 (+0200) Subject: Only mess with /etc/aliases if it already exists X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=579eae954fe353be65869f1b91b116e1c460efad;p=mirror%2Fdsa-puppet.git Only mess with /etc/aliases if it already exists --- diff --git a/modules/debian-org/manifests/init.pp b/modules/debian-org/manifests/init.pp index 8c7690020..3f57de2eb 100644 --- a/modules/debian-org/manifests/init.pp +++ b/modules/debian-org/manifests/init.pp @@ -197,6 +197,7 @@ class debian-org { mailalias { 'samhain-reports': ensure => present, recipient => $debianadmin, + onlyif => "test -e /etc/aliases", } exec { 'apt-get update':