mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 18:22:47 +01:00
[fix] Always set MSRVIP because /etc/hosts is wiped
This commit is contained in:
@@ -107,9 +107,12 @@ add_manager_hostfile() {
|
|||||||
|
|
||||||
|
|
||||||
add_mngr_ip_to_hosts() {
|
add_mngr_ip_to_hosts() {
|
||||||
if [[ -n "$MSRVIP" ]]; then
|
if [[ -z "$MSRVIP" ]]; then
|
||||||
echo "$MSRVIP $MSRV" >> /etc/hosts
|
MSRVIP=getent hosts "$MSRV" | awk 'NR==1{print $1}'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "$MSRVIP $MSRV" >> /etc/hosts
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
addtotab_generate_templates() {
|
addtotab_generate_templates() {
|
||||||
|
|||||||
Reference in New Issue
Block a user