Make manager hostname error more specific

This commit is contained in:
William Wernert
2021-11-08 10:35:28 -05:00
parent ad71485361
commit 50b7779d6e
2 changed files with 20 additions and 5 deletions

View File

@@ -470,11 +470,16 @@ collect_int_ip_mask() {
collect_mngr_hostname() {
whiptail_management_server
while ! valid_hostname "$MSRV" || [[ $MSRV == "$HOSTNAME" || $MSRVIP == "localhost" ]]; do
while ! valid_hostname "$MSRV"; do
whiptail_invalid_hostname
whiptail_management_server "$MSRV"
done
while [[ $MSRV == "$HOSTNAME" || $MSRVIP == "localhost" ]]; do
whiptail_invalid_hostname 0
whiptail_management_server "$MSRV"
done
if ! getent hosts "$MSRV"; then
whiptail_manager_ip