Added overrideable port nums
This commit is contained in:
parent
0a3c671435
commit
6da15eb4bf
@ -225,10 +225,12 @@ start_server() {
|
|||||||
|
|
||||||
local server_port
|
local server_port
|
||||||
server_port="$((PRIMARY_START_PORT_RANGE + server_id))"
|
server_port="$((PRIMARY_START_PORT_RANGE + server_id))"
|
||||||
|
server_port="${SERVER_PORT:-$server_port}"
|
||||||
|
|
||||||
local telnet_port
|
local telnet_port
|
||||||
telnet_port="$(( TELNET_START_PORT_RANGE + server_id ))"
|
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}")"
|
log "info" "Generating a few required directories in $(important "${server_directory}")"
|
||||||
mkdir -p "${server_save_dir}"
|
mkdir -p "${server_save_dir}"
|
||||||
mkdir -p "${server_userdata_dir}"
|
mkdir -p "${server_userdata_dir}"
|
||||||
|
Loading…
Reference in New Issue
Block a user