]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Do not add extra line on quiet mode on domain-check
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 27 Nov 2011 17:28:02 +0000 (15:28 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 27 Nov 2011 17:28:02 +0000 (15:28 -0200)
files/bin/domain-check
manifests/subsystems/domain.pp

index a8c28931d39196f1c7dfd581df678d003fb7ed82..dfdb27d697a3a5e8b16073c151e85a3dc8040854 100755 (executable)
@@ -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 <rhatto at riseup dot net>
+#
 #  Version 1.9
 #    Added support for .br domains -- Silvio Rhatto <rhatto at riseup dot net>
 #
@@ -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}
index eb3551f963b2a190d5447311c41f637a7469ca74..337fd0e9234f8d9afd7a43bca648fc2dad08f5c2 100644 (file)
@@ -27,7 +27,7 @@ class domain {
     }
 
     cron { "domain-check-${name}":
-      command  => "$command >/dev/null 2>&1",
+      command  => $command,
       user     => root,
       hour     => $hour,
       minute   => $minute,