From 95b4d1798794b6d620e9497b772cae6704f52428 Mon Sep 17 00:00:00 2001 From: Gratien D'haese Date: Mon, 18 Jun 2018 16:42:10 +0200 Subject: [PATCH] Fix BAREOS unattended mode; interrupted with question due to bad IF block --- usr/share/rear/restore/BAREOS/default/400_restore_backup.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr/share/rear/restore/BAREOS/default/400_restore_backup.sh b/usr/share/rear/restore/BAREOS/default/400_restore_backup.sh index 999988652f..9343c4e720 100644 --- a/usr/share/rear/restore/BAREOS/default/400_restore_backup.sh +++ b/usr/share/rear/restore/BAREOS/default/400_restore_backup.sh @@ -159,8 +159,9 @@ in the provided shell. When finished, type exit in the shell to continue recovery. " -if [[ "$ISO_RECOVER_MODE" != "unattended" ]] || [[ "$PXE_RECOVER_MODE" != "unattended" ]] ; then - +if [[ "$ISO_RECOVER_MODE" = "unattended" ]] || [[ "$PXE_RECOVER_MODE" = "unattended" ]] ; then + Log "Unattended mode selected" +else rear_shell "Did the backup successfully restore to '$TARGET_FS_ROOT' ? Ready to continue ?" \ "bls -j -V$BEXTRACT_VOLUME $BEXTRACT_DEVICE vi bootstrap.txt