From 379a5445e88dbcb61ce53f097d2958018c85e0fe Mon Sep 17 00:00:00 2001 From: William Wernert Date: Wed, 10 Jun 2020 14:27:18 -0400 Subject: [PATCH] [feat] Also exit with non-zero status for automated installs --- setup/so-setup | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup/so-setup b/setup/so-setup index 54b5a03e4..86d3b5e5c 100755 --- a/setup/so-setup +++ b/setup/so-setup @@ -57,6 +57,9 @@ function progress() { fi whiptail --title "Security Onion Install" --gauge 'Please wait while installing' 6 60 0 else + if grep -q "ERROR" $setup_log || [[ -s /var/spool/mail/root ]]; then + exit 1 + fi cat >> $setup_log 2>&1 fi