Warn user if using "securityonion" as hostname

This commit is contained in:
William Wernert committed 2021-02-12 12:55:55 -05:00
1 parent 8323f3f57a
commit 724f5cad78
2 files changed
+15

No files matched your search

+7
View File
@@ -398,6 +398,13 @@ collect_hostname() {
whiptail_set_hostname "$HOSTNAME"
if [[ $HOSTNAME == 'securityonion' ]]; then # Will only check HOSTNAME=securityonion once
if ! (whiptail_avoid_default_hostname); then
whiptail_set_hostname
fi
fi
while ! valid_hostname "$HOSTNAME"; do
whiptail_invalid_hostname
whiptail_set_hostname "$HOSTNAME"