]> arthur.barton.de Git - backup-script.git/commitdiff
backup-script-wrapper: Sort variables alphabetically
authorAlexander Barton <alex@barton.de>
Wed, 19 Aug 2015 08:18:18 +0000 (10:18 +0200)
committerAlexander Barton <alex@barton.de>
Wed, 19 Aug 2015 08:18:18 +0000 (10:18 +0200)
bin/backup-script-wrapper

index 8d160e494ee09705725589401f06b7a042bb19e5..bb9009de65a9b9132ad5921cb6d9f71c6869b233 100755 (executable)
@@ -21,11 +21,12 @@ if [ -z "$MAILTO" ]; then
 fi
 
 NAME="backup-script"
-HOST=`hostname -f`
-TMP=`mktemp /tmp/$NAME.XXXXXXXX` || exit 1
-LOGFILE="/var/log/backup-script.log"
+
 DELIMITER="- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -"
+HOST=`hostname -f`
+LOGFILE="/var/log/$NAME.log"
 SUBJECT="$NAME results"
+TMP=`mktemp /tmp/$NAME.XXXXXXXX` || exit 1
 
 PATH="$PATH:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
 export PATH