This commit is contained in:
2023-11-26 00:50:50 -06:00
parent f3ff162162
commit a2cb09a706

View File

@@ -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