Skip to content

Commit 73a0b3f

Browse files
authored
Configurable $BACKUP_TEMP in v-restore-user
1 parent 11eca5d commit 73a0b3f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bin/v-restore-user

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,12 @@ while [ "$la" -ge "$BACKUP_LA_LIMIT" ]; do
229229
(( ++i))
230230
done
231231

232+
if [ -z "$BACKUP_TEMP" ]; then
233+
BACKUP_TEMP=$BACKUP
234+
fi
235+
232236
# Creating temporary directory
233-
tmpdir=$(mktemp -p $BACKUP -d)
237+
tmpdir=$(mktemp -p $BACKUP_TEMP -d)
234238
if [ "$?" -ne 0 ]; then
235239
echo "Can't create tmp dir $tmpdir" |$SENDMAIL -s "$subj" $email $notify
236240
sed -i "/ $user /d" $VESTA/data/queue/backup.pipe

0 commit comments

Comments
 (0)