From: Silvio Rhatto Date: Sun, 27 Nov 2011 17:28:02 +0000 (-0200) Subject: Do not add extra line on quiet mode on domain-check X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=3da70423df032dea134f1251dad0e73544ae36a1;p=puppet-nodo.git Do not add extra line on quiet mode on domain-check --- diff --git a/files/bin/domain-check b/files/bin/domain-check index a8c2893..dfdb27d 100755 --- a/files/bin/domain-check +++ b/files/bin/domain-check @@ -4,10 +4,13 @@ # # Author: Matty < matty91 at gmail dot com > # -# Current Version: 1.9 +# Current Version: 1.10 # # Revision History: # +# Version 1.10 +# Do not add extra line on quiet mode -- Silvio Rhatto +# # Version 1.9 # Added support for .br domains -- Silvio Rhatto # @@ -493,7 +496,9 @@ else fi # Add an extra newline -echo +if [ "${QUIET}" != "TRUE" ]; then + echo +fi ### Remove the temporary files rm -f ${WHOIS_TMP} diff --git a/manifests/subsystems/domain.pp b/manifests/subsystems/domain.pp index eb3551f..337fd0e 100644 --- a/manifests/subsystems/domain.pp +++ b/manifests/subsystems/domain.pp @@ -27,7 +27,7 @@ class domain { } cron { "domain-check-${name}": - command => "$command >/dev/null 2>&1", + command => $command, user => root, hour => $hour, minute => $minute,