From 299709108fd8f61641320b77af66e2655f7c09c9 Mon Sep 17 00:00:00 2001 From: William Wernert Date: Fri, 1 May 2020 11:04:35 -0400 Subject: [PATCH] [fix] Don't run check_exitstatus in whiptail_homenet_sensor --- setup/so-functions | 2 ++ setup/so-whiptail | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/setup/so-functions b/setup/so-functions index 19c988548..bf024ab3e 100755 --- a/setup/so-functions +++ b/setup/so-functions @@ -667,7 +667,9 @@ fireeye_pillar() { } +# Run a salt command to generate the minion key salt_firstcheckin() { + echo "Next line will show [ERROR], this is expected" >> "$setup_log" 2>&1 salt-call state.show_top >> "$setup_log" 2>&1 } diff --git a/setup/so-whiptail b/setup/so-whiptail index 825430272..d66e3197d 100755 --- a/setup/so-whiptail +++ b/setup/so-whiptail @@ -349,7 +349,6 @@ whiptail_homenet_sensor() { whiptail --title "Security Onion Setup" --yesno "Do you want to inherit the HOME_NET from the Master?" 8 75 local exitstatus=$? - whiptail_check_exitstatus $exitstatus if [ $exitstatus == 0 ]; then export HNSENSOR=inherit