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=$?
|
||||
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() {
|
||||
|
||||
Reference in New Issue
Block a user