Adding docker net setting

This commit is contained in:
Mike Reeves
2020-10-27 11:09:14 -04:00
parent 564ac3a4ff
commit 42e00514f5
3 changed files with 37 additions and 0 deletions

View File

@@ -457,6 +457,31 @@ whiptail_dhcp_warn() {
}
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
local exitstatus=$?
if [[ $exitstatus == 0 ]]; then
whiptail_dockernet_net
fi
}
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)
local exitstatus=$?
whiptail_check_exitstatus $exitstatus
}
whiptail_enable_components() {
[ -n "$TESTING" ] && return