From 6fa3e1390777354fe0e38b3fad5a2b13fd094429 Mon Sep 17 00:00:00 2001 From: crawforc3 Date: Wed, 28 Sep 2022 12:21:21 -0700 Subject: [PATCH] Update nec post isntall --- lgsm/functions/fix_nec.sh | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/lgsm/functions/fix_nec.sh b/lgsm/functions/fix_nec.sh index 1158bc85d..d3e6d731a 100644 --- a/lgsm/functions/fix_nec.sh +++ b/lgsm/functions/fix_nec.sh @@ -1,20 +1,18 @@ #!/bin/bash -# LinuxGSM fix_av.sh module +# LinuxGSM fix_nec.sh module # Author: Daniel Gibbs # Contributors: http://linuxgsm.com/contrib # Website: https://linuxgsm.com -# Description: Resolves startup issue with Avorion +# 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." - command_start.sh - sleep 30 - command_stop.sh - -fi - - +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