From a2cb09a7065ce018c55758e1acb24822da79c7f2 Mon Sep 17 00:00:00 2001 From: Mitch Weaver Date: Sun, 26 Nov 2023 00:50:50 -0600 Subject: [PATCH] adsf --- server_start.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/server_start.sh b/server_start.sh index 9392350..c8c1e8b 100644 --- a/server_start.sh +++ b/server_start.sh @@ -212,10 +212,8 @@ load_mods() { # trim the initial leading ';' _modstring=${_modstring#;} - printf '%s\n' "$_modstring" > .modstring - - msg "Mods successfully loaded. Using modstring:" - printf '"%s"\n' "$(cat .modstring)" + printf '%s\n' "$_modstring" > modstring + msg "Mods successfully loaded." } # =================================================== @@ -239,7 +237,7 @@ start "$PROCESS_NAME" ^ -config=serverDZ.cfg ^ -port="$SERVER_PORT" ^ -profiles=Profilesfolder ^ - -mod="$(cat .mod_string)" ^ + -mod="$(cat modstring)" ^ -cpuCount="$SERVER_CPU" ^ -dologs -adminlog -netlog -freezecheck EOF @@ -266,7 +264,7 @@ EOF # TODO: need to change this to be title of the cmd else it will kill all servers cmd.exe /C taskkill /IM /FI "$PROCESS_NAME" ###### cmd.exe /C taskkill /im DayZServer_x64.exe /F - rm -f temp.bat 2>/dev/null ||: + rm -f temp.bat modstring 2>/dev/null ||: msg "Sleeping 10 seconds to settle" sleep 10