mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Only show the web interface link when the redirect URL is available, such as on manager nodes
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user