mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
[fix] Don't modify hosts file during whiptail menus
This commit is contained in:
@@ -103,9 +103,13 @@ add_manager_hostfile() {
|
|||||||
|
|
||||||
local exitstatus=$?
|
local exitstatus=$?
|
||||||
whiptail_check_exitstatus $exitstatus
|
whiptail_check_exitstatus $exitstatus
|
||||||
|
}
|
||||||
|
|
||||||
# Add manager to hosts file
|
|
||||||
echo "$MSRVIP $MSRV" >> /etc/hosts
|
add_mngr_ip_to_hosts() {
|
||||||
|
if [[ -n "$MSRVIP" ]]; then
|
||||||
|
echo "$MSRVIP $MSRV" >> /etc/hosts
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
addtotab_generate_templates() {
|
addtotab_generate_templates() {
|
||||||
|
|||||||
@@ -446,7 +446,11 @@ disable_ipv6
|
|||||||
disable_auto_start
|
disable_auto_start
|
||||||
|
|
||||||
if [[ "$setup_type" != 'iso' ]]; then
|
if [[ "$setup_type" != 'iso' ]]; then
|
||||||
set_hostname >> $setup_log 2>&1
|
set_hostname
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ $is_minion ]]; then
|
||||||
|
add_mngr_ip_to_hosts
|
||||||
fi
|
fi
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user