Correct port handling

This commit is contained in:
Price Hiller 2022-01-01 17:16:01 -06:00
parent cf8948bce5
commit 9733b0be33

View File

@ -211,7 +211,7 @@ start_server() {
server_directory="${BASE_DIR}/${server_name}"
server_config="${server_directory}/serverconfig.xml"
server_save_dir="${server_directory}/Saves/"
server_userdata_dir="${server_directory}/UserData"
server_userdata_dir="${server_directory}/UserData/"
server_mods_dir="${server_directory}/Mods"
prefix="7D2D"
server_session_name="${prefix}-${server_name}"
@ -229,8 +229,8 @@ start_server() {
server_port="$((PRIMARY_START_PORT_RANGE + $(("${server_id}" * 5))))"
server_port="${SERVER_PORT:-$server_port}"
telnet_port="$((server_port + 1))"
allocs_port="$((server_port + 2))"
telnet_port="$((server_port + 2))"
allocs_port="$((server_port + 3))"
telnet_port="${TELNET_PORT:-$telnet_port}"
log "info" "Generating a few required directories in $(important "${server_directory}")"