From ceb46c4ecaec1c581a02c8f0a82567d37cbba998 Mon Sep 17 00:00:00 2001 From: William Wernert Date: Fri, 17 Apr 2020 21:07:05 -0400 Subject: [PATCH] [fix] Revert variable rename (HNSENSOR, HNMASTER) --- setup/so-whiptail | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/setup/so-whiptail b/setup/so-whiptail index 651abc6da..9ccb8bafe 100755 --- a/setup/so-whiptail +++ b/setup/so-whiptail @@ -326,10 +326,9 @@ whiptail_homenet_master() { [ -z "$QUIET" ] && return - # Ask for the HOME_NET on the master - home_network_master=$(whiptail --title "Security Onion Setup" --inputbox \ + HNMASTER=$(whiptail --title "Security Onion Setup" --inputbox \ "Enter your HOME_NET separated by ," 10 75 10.0.0.0/8,192.168.0.0/16,172.16.0.0/12 3>&1 1>&2 2>&3) - export home_network_master + export HNMASTER local exitstatus=$? whiptail_check_exitstatus $exitstatus @@ -345,11 +344,11 @@ whiptail_homenet_sensor() { local exitstatus=$? if [ $exitstatus == 0 ]; then - export home_network_sensor=inherit + export HNSENSOR=inherit else - home_network_sensor=$(whiptail --title "Security Onion Setup" --inputbox \ + HNSENSOR=$(whiptail --title "Security Onion Setup" --inputbox \ "Enter your HOME_NET separated by ," 10 75 10.0.0.0/8,192.168.0.0/16,172.16.0.0/12 3>&1 1>&2 2>&3) - export home_network_sensor + export HNSENSOR local exitstatus=$? whiptail_check_exitstatus $exitstatus