[feat] Also exit with non-zero status for automated installs

This commit is contained in:
William Wernert
2020-06-10 14:27:18 -04:00
parent 9695b9326b
commit 379a5445e8

View File

@@ -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