From 3da70423df032dea134f1251dad0e73544ae36a1 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 27 Nov 2011 15:28:02 -0200 Subject: Do not add extra line on quiet mode on domain-check --- files/bin/domain-check | 9 +++++++-- manifests/subsystems/domain.pp | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) 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, -- cgit v1.2.3