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