Browse Source

Remove config checks

pull/3995/head
crawforc3 3 years ago
parent
commit
32adfeca47
  1. 2
      lgsm/config-default/config-lgsm/necserver/_default.cfg
  2. 2
      lgsm/functions/install_config.sh
  3. 4
      linuxgsm.sh

2
lgsm/config-default/config-lgsm/necserver/_default.cfg

@ -7,7 +7,7 @@
# [instance].cfg - applies settings to a specific instance. # [instance].cfg - applies settings to a specific instance.
#### Game Server Settings #### #### Game Server Settings ####
worldname="My World" worldname="MyWorld"
port="14159" port="14159"
slots="10" # [1 - 250] Server default slots slots="10" # [1 - 250] Server default slots
password="" # Leave blank for no password password="" # Leave blank for no password

2
lgsm/functions/install_config.sh

@ -636,8 +636,6 @@ elif [ "${shortname}" == "pz" ]; then
fn_list_config_locations fn_list_config_locations
elif [ "${shortname}" == "nec" ]; then elif [ "${shortname}" == "nec" ]; then
gamedirname="Necesse" gamedirname="Necesse"
fn_check_cfgdir
fn_set_config_vars
fn_list_config_locations fn_list_config_locations
elif [ "${shortname}" == "pc" ]; then elif [ "${shortname}" == "pc" ]; then
gamedirname="ProjectCars" gamedirname="ProjectCars"

4
linuxgsm.sh

@ -47,9 +47,9 @@ userinput2="${2}"
## GitHub Branch Select ## GitHub Branch Select
# Allows for the use of different function files # Allows for the use of different function files
# from a different repo and/or branch. # from a different repo and/or branch.
[ -n "${LGSM_GITHUBUSER}" ] && githubuser="${LGSM_GITHUBUSER}" || githubuser="GameServerManagers" [ -n "${LGSM_GITHUBUSER}" ] && githubuser="${LGSM_GITHUBUSER}" || githubuser="crawford"
[ -n "${LGSM_GITHUBREPO}" ] && githubrepo="${LGSM_GITHUBREPO}" || githubrepo="LinuxGSM" [ -n "${LGSM_GITHUBREPO}" ] && githubrepo="${LGSM_GITHUBREPO}" || githubrepo="LinuxGSM"
[ -n "${LGSM_GITHUBBRANCH}" ] && githubbranch="${LGSM_GITHUBBRANCH}" || githubbranch="master" [ -n "${LGSM_GITHUBBRANCH}" ] && githubbranch="${LGSM_GITHUBBRANCH}" || githubbranch="develop"
# Check that curl is installed before doing anything # Check that curl is installed before doing anything
if [ ! "$(command -v curl 2> /dev/null)" ]; then if [ ! "$(command -v curl 2> /dev/null)" ]; then

Loading…
Cancel
Save