Przeglądaj źródła

Merge pull request #1606 from ioannidesalex/patch-49

Switch from /tmp to /backup
Serghey Rodin 7 lat temu
rodzic
commit
71ca858ed2
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      bin/v-restore-user

+ 1 - 1
bin/v-restore-user

@@ -230,7 +230,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
     sed -i "/ $user /d" $VESTA/data/queue/backup.pipe