[feat] Add TESTING flag to whiptail menus for automated setup script testing

This commit is contained in:
William Wernert
2020-04-28 14:11:08 -04:00
parent 8b76b30266
commit f22cb9aac1
2 changed files with 139 additions and 0 deletions

View File

@@ -44,6 +44,9 @@ add_admin_user() {
}
add_master_hostfile() {
[ -n "$TESTING" ] && return
echo "Checking if I can resolve master. If not add to hosts file" >> $SETUPLOG 2>&1
# Pop up an input to get the IP address
MSRVIP=$(whiptail --title "Security Onion Setup" --inputbox \