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. # Fixes that are run on install only.
if [ "${commandname}" == "INSTALL" ]; then 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 ""
echo -e "${lightyellow}Applying Post-Install Fixes${default}" echo -e "${lightyellow}Applying Post-Install Fixes${default}"
echo -e "=================================" echo -e "================================="
@ -112,6 +112,8 @@ if [ "${commandname}" == "INSTALL" ]; then
fix_kf2.sh fix_kf2.sh
elif [ "${shortname}" == "lo" ]; then elif [ "${shortname}" == "lo" ]; then
fix_lo.sh fix_lo.sh
elif [ "${shortname}" == "nec" ]; then
fix_nec.sh
elif [ "${shortname}" == "ro" ]; then elif [ "${shortname}" == "ro" ]; then
fix_ro.sh fix_ro.sh
elif [ "${shortname}" == "samp" ]; then elif [ "${shortname}" == "samp" ]; then

20
lgsm/functions/fix_nec.sh

@ -8,11 +8,15 @@
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
fn_print_information "starting ${gamename} server to generate configs." if [ "${postinstall}" == "1" ]; then
exitbypass=1 fn_print_information "starting ${gamename} server to generate configs."
command_start.sh exitbypass=1
fn_firstcommand_reset command_start.sh
sleep 10 fn_firstcommand_reset
exibypass=1 sleep 10
command_stop.sh exibypass=1
fn_firstcommand_reset command_stop.sh
fn_firstcommand_reset
fi

Loading…
Cancel
Save