Browse Source

update fixes

pull/3995/head
crawforc3 3 years ago
parent
commit
6cf93eb1f7
  1. 4
      lgsm/functions/fix.sh
  2. 20
      lgsm/functions/fix_nec.sh

4
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

20
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

Loading…
Cancel
Save