Added overrideable port nums

This commit is contained in:
Price Hiller 2021-12-27 16:41:34 -06:00
parent 0a3c671435
commit 6da15eb4bf

View File

@ -225,10 +225,12 @@ start_server() {
local server_port
server_port="$((PRIMARY_START_PORT_RANGE + server_id))"
server_port="${SERVER_PORT:-$server_port}"
local telnet_port
telnet_port="$(( TELNET_START_PORT_RANGE + server_id ))"
telnet_port="${TELNET_PORT:-$telnet_port}"
log "info" "Generating a few required directories in $(important "${server_directory}")"
mkdir -p "${server_save_dir}"
mkdir -p "${server_userdata_dir}"