Replace /tmp with $BACKUP

/tmp size is not enough for larger websites.
This commit is contained in:
Alexandros Ioannides 2018-05-31 21:21:16 +03:00 committed by GitHub
commit b06ddecbc1
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 done
# Creating temporary directory # Creating temporary directory
tmpdir=$(mktemp -p /tmp -d) tmpdir=$(mktemp -p $BACKUP -d)
if [ "$?" -ne 0 ]; then if [ "$?" -ne 0 ]; then
echo "Can't create tmp dir $tmpdir" |$SENDMAIL -s "$subj" $email $notify echo "Can't create tmp dir $tmpdir" |$SENDMAIL -s "$subj" $email $notify