Forráskód Böngészése

Switch from /tmp to /backup

Alexandros Ioannides 7 éve
szülő
commit
cd61896176
1 módosított fájl, 1 hozzáadás és 1 törlés
  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
 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
     sed -i "/ $user /d" $VESTA/data/queue/backup.pipe
     sed -i "/ $user /d" $VESTA/data/queue/backup.pipe