Browse Source

cron: fixed cron.run.sh to work with hostname from coreutils which is the one we always use.

Signed-off-by: Christian Wiese <chris@opensde.org>
user/chris/wip/linux37
Nagy Karoly Gabriel 12 years ago committed by Christian Wiese
parent
commit
96f6c87853
  1. 3
      base/cron/cron.run.sh

3
base/cron/cron.run.sh

@ -4,6 +4,7 @@
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../cron/cron.run.sh
# Copyright (C) 2013 The OpenSDE Project
# Copyright (C) 2004 - 2006 The T2 SDE Project
# Copyright (C) 1998 - 2003 Clifford Wolf
#
@ -20,7 +21,7 @@ if [ "$1" = "-mail-to-root" ] ; then
exit
fi
x="$( hostname -f 2> /dev/null )"
x="$( hostname > /dev/null )"
echo "Output of the daily cron at ${x:-localhost}."
echo "Local time is `date | tr -s ' '`."
echo

Loading…
Cancel
Save