Merge pull request #1142 from Srgk/master

fix tmp dir for restore backup user
This commit is contained in:
Serghey Rodin 2017-12-28 15:19:53 +02:00 committed by GitHub
commit 4a2f0424e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

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