From e29fb39f5bfbd8a69f12a0df86aef694355bc408 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sat, 1 Jan 2022 18:00:54 -0600 Subject: [PATCH] Variable renamed --- Scripts/7D2D-Manage.bash | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Scripts/7D2D-Manage.bash b/Scripts/7D2D-Manage.bash index 9666bab..6617dc5 100644 --- a/Scripts/7D2D-Manage.bash +++ b/Scripts/7D2D-Manage.bash @@ -224,13 +224,13 @@ start_server() { local server_port local telnet_port - local allocs_port + local web_control_port # This multiplication gives us 5 available ports for this server, safely allows us to block off ports efficiently server_port="$((PRIMARY_START_PORT_RANGE + $(("${server_id}" * 7))))" server_port="${SERVER_PORT:-$server_port}" telnet_port="$((server_port + 4))" - allocs_port="$((server_port + 5))" + web_control_port="$((server_port + 5))" telnet_port="${TELNET_PORT:-$telnet_port}" log "info" "Generating a few required directories in $(important "${server_directory}")" @@ -254,7 +254,7 @@ start_server() { elif [[ "${REPLY}" = *"property name=\"TelnetPort\""* ]]; then printf "\t%s\n" "" elif [[ "${REPLY}" = *"property name=\"ControlPanelPort\""* ]]; then - printf "\t%s\n" "" + printf "\t%s\n" "" else printf "%s\n" "${REPLY}" fi @@ -286,7 +286,7 @@ start_server() { log "warning" "$(important "xmllint") not installed or not in PATH, skipping lint check" fi - log "info" "Starting $(important "${server_name}") located at $(important "${server_directory}") on game port $(important "${server_port}"), telnet port $(important "${telnet_port}"), control panel port $(important "${allocs_port}")" + log "info" "Starting $(important "${server_name}") located at $(important "${server_directory}") on game port $(important "${server_port}"), telnet port $(important "${telnet_port}"), control panel port $(important "${web_control_port}")" if tmux has-session -t "${server_session_name}" >/dev/null 2>&1; then log "warning" "$(important "${server_name}") is currently running"