Skip to content

Commit 4a2f042

Browse files
Merge pull request hestiacp#1142 from Srgk/master
fix tmp dir for restore backup user
2 parents 2d19400 + 95a26fb commit 4a2f042

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bin/v-backup-user

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ while [ "$la" -ge "$BACKUP_LA_LIMIT" ]; do
6969
done
7070

7171
# Creating temporary directory
72-
tmpdir=$(mktemp -p $BACKUP -d)
72+
tmpdir=$(mktemp -p /tmp -d)
7373

7474
if [ "$?" -ne 0 ]; then
7575
echo "Can't create tmp dir $tmpdir" |$SENDMAIL -s "$subj" $email $notify

bin/v-restore-user

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ while [ "$la" -ge "$BACKUP_LA_LIMIT" ]; do
230230
done
231231

232232
# Creating temporary directory
233-
tmpdir=$(mktemp -p $BACKUP -d)
233+
tmpdir=$(mktemp -p /tmp -d)
234234
if [ "$?" -ne 0 ]; then
235235
echo "Can't create tmp dir $tmpdir" |$SENDMAIL -s "$subj" $email $notify
236236
sed -i "/ $user /d" $VESTA/data/queue/backup.pipe

0 commit comments

Comments
 (0)