Skip to content

Commit 1ec6fd8

Browse files
committed
Supress tar error messages.
1 parent a15eb49 commit 1ec6fd8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/v-restore-user

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,9 @@ if [ "$create_user" = 'yes' ]; then
247247
echo -e "$(date "+%F %T") $user" |tee -a $tmpdir/restore.log
248248

249249
# Unpacking user container
250-
tar xf $BACKUP/$backup -C $tmpdir ./hestia
250+
tar xf $BACKUP/$backup -C $tmpdir ./hestia 2>/dev/null
251251
if [ "$?" -ne 0 ]; then
252-
tar xf $BACKUP/$backup -C $tmpdir ./vesta
252+
tar xf $BACKUP/$backup -C $tmpdir ./vesta 2>/dev/null
253253
if [ "$?" -ne 0 ]; then
254254
rm -rf $tmpdir
255255
echo "Can't unpack user contaner" |$SENDMAIL -s "$subj" $email $notify

0 commit comments

Comments
 (0)