Browse Source

fix tmp dir for restore user

Serge Kraev 9 years ago
parent
commit
dc3807ceee
1 changed files with 1 additions and 1 deletions
  1. 1 1
      bin/v-restore-user

+ 1 - 1
bin/v-restore-user

@@ -217,7 +217,7 @@ while [ "$la" -ge "$BACKUP_LA_LIMIT" ]; do
 done
 done
 
 
 # Creating temporary directory
 # Creating temporary directory
-tmpdir=$(mktemp -p $BACKUP -d)
+tmpdir=$(mktemp -p /tmp -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
     sed -i "/ $user /d" $VESTA/data/queue/backup.pipe
     sed -i "/ $user /d" $VESTA/data/queue/backup.pipe