Dockernet Modifications

This commit is contained in:
Mike Reeves
2020-10-27 15:08:34 -04:00
parent d4dd4aa416
commit 697bc53aec
5 changed files with 16 additions and 9 deletions

View File

@@ -462,11 +462,11 @@ whiptail_dockernet_check(){
[ -n "$TESTING" ] && return
whiptail --title "Security Onion Setup" --yesno \
"Do you want to change the IP range Docker uses? (Choose no if you don't know what this means)" 8 75
"Do you want to keep the default Docker IP range? (Choose yes if you don't know what this means)" 8 75
local exitstatus=$?
if [[ $exitstatus == 0 ]]; then
if [[ $exitstatus == 1 ]]; then
whiptail_dockernet_net
fi
}
@@ -476,7 +476,7 @@ whiptail_dockernet_net() {
[ -n "$TESTING" ] && return
DOCKERNET=$(whiptail --title "Security Onion Setup" --inputbox \
"\nEnter a network range for docker to use: \n \n(Default value is pre-populated)" 10 75 172.17.0.0/16 3>&1 1>&2 2>&3)
"\nEnter a /24 network range for docker to use: \n \n(Default value is pre-populated)" 10 75 172.17.0.0 3>&1 1>&2 2>&3)
local exitstatus=$?
whiptail_check_exitstatus $exitstatus