mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-09 18:52:52 +01:00
[fix] Add manager to hosts before attempting ssh
This commit is contained in:
@@ -261,12 +261,21 @@ if ! [ -f /root/install_opt ]; then
|
|||||||
whiptail_management_interface_setup
|
whiptail_management_interface_setup
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Init networking so rest of install works
|
||||||
|
disable_ipv6
|
||||||
if [[ "$setup_type" == 'iso' ]]; then
|
if [[ "$setup_type" == 'iso' ]]; then
|
||||||
# Init networking so rest of install works
|
|
||||||
set_hostname
|
set_hostname
|
||||||
set_management_interface
|
set_management_interface
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ -n "$TURBO" ]]; then
|
||||||
|
use_turbo_proxy
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ $is_minion ]]; then
|
||||||
|
add_mngr_ip_to_hosts
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ $is_minion ]]; then
|
if [[ $is_minion ]]; then
|
||||||
[ "$automated" == no ] && copy_ssh_key >> $setup_log 2>&1
|
[ "$automated" == no ] && copy_ssh_key >> $setup_log 2>&1
|
||||||
fi
|
fi
|
||||||
@@ -464,25 +473,10 @@ catch() {
|
|||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
# Init networking so rest of install works
|
|
||||||
if [[ -n "$TURBO" ]]; then
|
|
||||||
use_turbo_proxy
|
|
||||||
fi
|
|
||||||
|
|
||||||
disable_ipv6
|
|
||||||
|
|
||||||
if [[ "$setup_type" != 'iso' ]]; then
|
|
||||||
set_hostname >> $setup_log 2>&1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ $is_minion ]]; then
|
|
||||||
add_mngr_ip_to_hosts
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This block sets REDIRECTIT which is used by a function outside the below subshell
|
# This block sets REDIRECTIT which is used by a function outside the below subshell
|
||||||
set_main_ip >> $setup_log 2>&1
|
set_main_ip >> $setup_log 2>&1
|
||||||
compare_main_nic_ip
|
compare_main_nic_ip
|
||||||
set_redirect >> $setup_log 2>&1
|
set_redirect >> $setup_log 2>&1
|
||||||
|
|
||||||
# Begin install
|
# Begin install
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user