[fix] Revert variable rename (HNSENSOR, HNMASTER)

This commit is contained in:
William Wernert
2020-04-17 21:07:05 -04:00
parent ae9a7a4b55
commit ceb46c4eca

View File

@@ -326,10 +326,9 @@ whiptail_homenet_master() {
[ -z "$QUIET" ] && return [ -z "$QUIET" ] && return
# Ask for the HOME_NET on the master HNMASTER=$(whiptail --title "Security Onion Setup" --inputbox \
home_network_master=$(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) "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=$? local exitstatus=$?
whiptail_check_exitstatus $exitstatus whiptail_check_exitstatus $exitstatus
@@ -345,11 +344,11 @@ whiptail_homenet_sensor() {
local exitstatus=$? local exitstatus=$?
if [ $exitstatus == 0 ]; then if [ $exitstatus == 0 ]; then
export home_network_sensor=inherit export HNSENSOR=inherit
else 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) "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=$? local exitstatus=$?
whiptail_check_exitstatus $exitstatus whiptail_check_exitstatus $exitstatus