Only show the web interface link when the redirect URL is available, such as on manager nodes

This commit is contained in:
Jason Ertel
2020-08-14 09:10:28 -04:00
parent e6830e9cba
commit ee62faae72

View File

@@ -1064,17 +1064,21 @@ whiptail_setup_complete() {
[ -n "$TESTING" ] && return [ -n "$TESTING" ] && return
if [[ -n $ALLOW_CIDR ]]; then if [[ -n "$REDIRECTIT" ]]; then
local sentence_prefix="Access" if [[ -n $ALLOW_CIDR ]]; then
local sentence_prefix="Access"
else
local sentence_prefix="Run so-allow after reboot to access"
fi
local accessMessage="\n${sentence_prefix} the web interface at: https://${REDIRECTIT}\n"
else else
local sentence_prefix="Run so-allow after reboot to access" local accessMessage=""
fi fi
read -r -d '' message <<- EOM read -r -d '' message <<- EOM
Finished ${install_type} installation. Finished ${install_type} installation.
$accessMessage
${sentence_prefix} the web interface at: https://${REDIRECTIT}
Press ENTER to reboot. Press ENTER to reboot.
EOM EOM