Merge pull request #11245 from Security-Onion-Solutions/jertel/sod

ensure hostname is set
This commit is contained in:
Jason Ertel
2023-09-02 13:49:49 -04:00
committed by GitHub

View File

@@ -174,7 +174,6 @@ if [ -n "$test_profile" ]; then
# The below settings are hardcoded purely for automated testing purposes. # The below settings are hardcoded purely for automated testing purposes.
TESTING=true TESTING=true
is_desktop_grid=false
if [[ "$test_profile" =~ "-sensor" ]]; then if [[ "$test_profile" =~ "-sensor" ]]; then
install_type=SENSOR install_type=SENSOR
@@ -201,6 +200,9 @@ if [ -n "$test_profile" ]; then
if [[ "$install_type" =~ "DESKTOP" ]]; then if [[ "$install_type" =~ "DESKTOP" ]]; then
is_desktop=true is_desktop=true
HOSTNAME=desktop HOSTNAME=desktop
if [[ -z "$is_desktop_grid" ]]; then
is_desktop_grid=false
fi
fi fi
info "Activating test profile; profile=$test_profile; install_type=$install_type" info "Activating test profile; profile=$test_profile; install_type=$install_type"