From 6da15eb4bfcbc0a2b31c789b99d7b02fdba6bb3e Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Mon, 27 Dec 2021 16:41:34 -0600 Subject: [PATCH] Added overrideable port nums --- Scripts/7D2D-Manage.bash | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Scripts/7D2D-Manage.bash b/Scripts/7D2D-Manage.bash index ded75c0..c40d40f 100644 --- a/Scripts/7D2D-Manage.bash +++ b/Scripts/7D2D-Manage.bash @@ -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}"