mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 09:42:46 +01:00
Setup - fix iso hostname
This commit is contained in:
@@ -1171,6 +1171,15 @@ set_hostname() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
set_hostname_iso() {
|
||||||
|
|
||||||
|
hostnamectl set-hostname --static $HOSTNAME
|
||||||
|
echo "127.0.0.1 $HOSTNAME $HOSTNAME.localdomain localhost localhost.localdomain localhost4 localhost4.localdomain" > /etc/hosts
|
||||||
|
echo "::1 localhost localhost.localdomain localhost6 localhost6.localdomain6" >> /etc/hosts
|
||||||
|
echo $HOSTNAME > /etc/hostname
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
set_initial_firewall_policy() {
|
set_initial_firewall_policy() {
|
||||||
|
|
||||||
get_main_ip
|
get_main_ip
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ if (whiptail_you_sure) ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Go ahead and bring up networking so other parts of the install work
|
# Go ahead and bring up networking so other parts of the install work
|
||||||
set_hostname
|
set_hostname_iso
|
||||||
set_management_interface
|
set_management_interface
|
||||||
|
|
||||||
# Add an admin user
|
# Add an admin user
|
||||||
|
|||||||
Reference in New Issue
Block a user