Skip to content

Commit 71ca858

Browse files
Merge pull request hestiacp#1606 from ioannidesalex/patch-49
Switch from /tmp to /backup
2 parents 308da45 + cd61896 commit 71ca858

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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 /tmp -d)
233+
tmpdir=$(mktemp -p $BACKUP -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)