From 4a7fc93f39e544f3680af156cf72809beb2332e9 Mon Sep 17 00:00:00 2001 From: crawforc3 Date: Wed, 28 Sep 2022 14:51:09 -0700 Subject: [PATCH] fix install config --- .../config-lgsm/necserver/_default.cfg | 11 +------- lgsm/functions/fix_nec.sh | 26 ------------------- lgsm/functions/install_config.sh | 5 ++++ 3 files changed, 6 insertions(+), 36 deletions(-) delete mode 100644 lgsm/functions/fix_nec.sh diff --git a/lgsm/config-default/config-lgsm/necserver/_default.cfg b/lgsm/config-default/config-lgsm/necserver/_default.cfg index ccb486116..65b7a7f1d 100644 --- a/lgsm/config-default/config-lgsm/necserver/_default.cfg +++ b/lgsm/config-default/config-lgsm/necserver/_default.cfg @@ -7,17 +7,8 @@ # [instance].cfg - applies settings to a specific instance. #### Game Server Settings #### +## Pre-defined Paramters | https://docs.linuxgsm.com/configuration/start-parameters#predefined-parameters worldname="MyWorld" -port="14159" -slots="10" # [1 - 250] Server default slots -password="" # Leave blank for no password -pauseWhenEmpty="false", -giveClientsPower="true" # If true, clients will have much more power over what hits them, their position etc -logging="true" # Will create log files for each server start -language="en" -zipSaves="false" # Create new saves uncompressed -MOTD="" # Message of the day - ## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters startparameters="-localdir -world ${worldname}" diff --git a/lgsm/functions/fix_nec.sh b/lgsm/functions/fix_nec.sh deleted file mode 100644 index 5b8466dcf..000000000 --- a/lgsm/functions/fix_nec.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash -# LinuxGSM fix_nec.sh module -# Author: Daniel Gibbs -# Contributors: http://linuxgsm.com/contrib -# Website: https://linuxgsm.com -# Description: Starts a server to autogenerate configs after installation - -functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" - - -if [ "${postinstall}" == "1" ]; then - fn_print_information "starting ${gamename} server to generate configs." - exitbypass=1 - command_start.sh - fn_firstcommand_reset - sleep 10 - exibypass=1 - command_stop.sh - fn_firstcommand_reset -fi - -fn_default_config_local -fn_set_config_vars -fn_list_config_locations - - diff --git a/lgsm/functions/install_config.sh b/lgsm/functions/install_config.sh index 049df27ce..d5525c266 100755 --- a/lgsm/functions/install_config.sh +++ b/lgsm/functions/install_config.sh @@ -637,6 +637,11 @@ elif [ "${shortname}" == "pz" ]; then elif [ "${shortname}" == "nec" ]; then gamedirname="Necesse" fn_check_cfgdir + array_configs+=(server.cfg) + fn_fetch_default_config + fn_default_config_remote + fn_set_config_vars + fn_list_config_locations elif [ "${shortname}" == "pc" ]; then gamedirname="ProjectCars" array_configs+=(server.cfg)