From: Alexander Barton Date: Wed, 19 Aug 2015 08:18:18 +0000 (+0200) Subject: backup-script-wrapper: Sort variables alphabetically X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=backup-script.git;a=commitdiff_plain;h=d4380ed6a2f6be19241f71695a8b42d2eecdb8d7 backup-script-wrapper: Sort variables alphabetically --- diff --git a/bin/backup-script-wrapper b/bin/backup-script-wrapper index 8d160e4..bb9009d 100755 --- a/bin/backup-script-wrapper +++ b/bin/backup-script-wrapper @@ -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