]> arthur.barton.de Git - backup-script.git/commitdiff
backup-script-wrapper: Use FQDN for mail subject
authorAlexander Barton <alex@barton.de>
Tue, 18 Aug 2015 09:21:16 +0000 (11:21 +0200)
committerAlexander Barton <alex@barton.de>
Tue, 18 Aug 2015 09:21:16 +0000 (11:21 +0200)
bin/backup-script-wrapper

index 047ff96395705c71ea4ebaa71d2e49680f68e7aa..482609fa0ea65b6b58722818ccb063c6eb0810d1 100755 (executable)
@@ -21,7 +21,7 @@ if [ -z "$MAILTO" ]; then
 fi
 
 NAME="backup-script"
-HOST=`hostname`
+HOST=`hostname -f`
 TMP=`mktemp /tmp/$NAME.XXXXXXXX` || exit 1
 LOGFILE="/var/log/backup-script.log"
 DELIMITER="- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -"