Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions bbb-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,9 @@ wait_443() {
}

get_IP() {
if [ ! -z "$IP" ]; then return 0; fi
# This function determines the local IP, sets the variable $IP, then attempts to determine external IP and check if external IP reaches the internal IP.
# Determine if get_IP has already been called ($IP exists), if so, no need to run again.
if [ -n "$IP" ]; then return 0; fi

# Determine local IP
need_pkg net-tools
Expand Down Expand Up @@ -471,7 +473,7 @@ get_IP() {
fi

# Check if the external IP reaches the internal IP
if [ ! -z "$external_ip" ] && [ "$IP" != "$external_ip" ]; then
if [ -n "$external_ip" ] && [ "$IP" != "$external_ip" ]; then
if which nginx; then
systemctl stop nginx
fi
Expand Down