Ver Fonte

Merge pull request #1590 from ioannidesalex/patch-34

Replace /tmp with $BACKUP
Anton Reutov há 7 anos atrás
pai
commit
a5d0011ef7
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      bin/v-backup-user

+ 1 - 1
bin/v-backup-user

@@ -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