Explorar o código

Merge pull request #1142 from Srgk/master

fix tmp dir for restore backup user
Serghey Rodin %!s(int64=8) %!d(string=hai) anos
pai
achega
4a2f0424e8
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      bin/v-backup-user
  2. 1 1
      bin/v-restore-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 $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

+ 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 $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