[Logcheck-commits] CVS logcheck/src
CVS User maks-guest
logcheck-devel@lists.alioth.debian.org
Thu, 23 Jun 2005 08:14:20 +0000
Update of /cvsroot/logcheck/logcheck/src
In directory haydn:/tmp/cvs-serv25965/src
Modified Files:
logcheck
Log Message:
ignore error message about wrong or not existant hostname.
if we move that section down, we could do some error reporting about it,
but don't think it's important for us.
--- /cvsroot/logcheck/logcheck/src/logcheck 2005/05/09 01:12:02 1.117
+++ /cvsroot/logcheck/logcheck/src/logcheck 2005/06/23 08:14:20 1.118
@@ -22,7 +22,7 @@
# along with Logcheck; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-# $Id: logcheck,v 1.117 2005/05/09 01:12:02 jlps-guest Exp $
+# $Id: logcheck,v 1.118 2005/06/23 08:14:20 maks-guest Exp $
if [ $UID == 0 ]; then
echo "logcheck should not be run as root. Use su to invoke logcheck:"
@@ -45,7 +45,7 @@
# Get the details for the email message
DATE="$(date +'%Y-%m-%d %H:%M')"
-VERSION="1.2.40"
+VERSION="1.2.41"
# Set the default report level
REPORTLEVEL="server"
@@ -511,9 +511,9 @@
# Hostname either fully qualified or not.
if [ $FQDN -eq 1 ]; then
- HOSTNAME="$(hostname --fqdn)"
+ HOSTNAME="$(hostname --fqdn)" > /dev/null 2>&1
else
- HOSTNAME="$(hostname --short)"
+ HOSTNAME="$(hostname --short)" > /dev/null 2>&1
fi
# Now check for the other options