From 6cf93eb1f73329635ef74c89b8f436a5940b2583 Mon Sep 17 00:00:00 2001 From: crawforc3 Date: Wed, 28 Sep 2022 12:25:55 -0700 Subject: [PATCH] update fixes --- lgsm/functions/fix.sh | 4 +++- lgsm/functions/fix_nec.sh | 20 ++++++++++++-------- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/lgsm/functions/fix.sh b/lgsm/functions/fix.sh index 0ed9fdf70..7c10d61e3 100755 --- a/lgsm/functions/fix.sh +++ b/lgsm/functions/fix.sh @@ -98,7 +98,7 @@ fi # Fixes that are run on install only. if [ "${commandname}" == "INSTALL" ]; then - if [ "${shortname}" == "av" ] || [ "${shortname}" == "cmw" ] || [ "${shortname}" == "kf" ] || [ "${shortname}" == "kf2" ] || [ "${shortname}" == "lo" ] || [ "${shortname}" == "onset" ] || [ "${shortname}" == "ro" ] || [ "${shortname}" == "samp" ] || [ "${shortname}" == "ut2k4" ] || [ "${shortname}" == "ut" ] || [ "${shortname}" == "ut3" ]; then + if [ "${shortname}" == "av" ] || [ "${shortname}" == "cmw" ] || [ "${shortname}" == "kf" ] || [ "${shortname}" == "kf2" ] || [ "${shortname}" == "lo" ] || [ "${shortname}" == "nec" ] || [ "${shortname}" == "onset" ] || [ "${shortname}" == "ro" ] || [ "${shortname}" == "samp" ] || [ "${shortname}" == "ut2k4" ] || [ "${shortname}" == "ut" ] || [ "${shortname}" == "ut3" ]; then echo -e "" echo -e "${lightyellow}Applying Post-Install Fixes${default}" echo -e "=================================" @@ -112,6 +112,8 @@ if [ "${commandname}" == "INSTALL" ]; then fix_kf2.sh elif [ "${shortname}" == "lo" ]; then fix_lo.sh + elif [ "${shortname}" == "nec" ]; then + fix_nec.sh elif [ "${shortname}" == "ro" ]; then fix_ro.sh elif [ "${shortname}" == "samp" ]; then diff --git a/lgsm/functions/fix_nec.sh b/lgsm/functions/fix_nec.sh index d3e6d731a..816c12024 100644 --- a/lgsm/functions/fix_nec.sh +++ b/lgsm/functions/fix_nec.sh @@ -8,11 +8,15 @@ functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" -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 +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 + +