Merge pull request #1590 from ioannidesalex/patch-34

Replace /tmp with $BACKUP
This commit is contained in:
Anton Reutov 2018-06-01 09:52:54 +02:00 committed by GitHub
commit a5d0011ef7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,7 +69,7 @@ while [ "$la" -ge "$BACKUP_LA_LIMIT" ]; do
done
# Creating temporary directory
tmpdir=$(mktemp -p /tmp -d)
tmpdir=$(mktemp -p $BACKUP -d)
if [ "$?" -ne 0 ]; then
echo "Can't create tmp dir $tmpdir" |$SENDMAIL -s "$subj" $email $notify