Commit c34daae7 authored by Razer's avatar Razer
Browse files

Added ability to store old libredex log files

parent e2e5536c
......@@ -25,6 +25,7 @@ set PackAddons=true
set PackMissions=true
set DeleteBakFiles=true
set CopyConfigFiles=true
set StoreLibredexLogs=true
set UseGit=false
......@@ -184,12 +185,21 @@ del /s /q /f "%ServerFolder%\mpmissions\*.bak"
:CopyConfigFiles
if %CopyConfigFiles% == false goto StartServer
if %CopyConfigFiles% == false goto storeLibredexLog
cls
echo Copying config files...
xcopy "%GitBranchFolder%\@DesolationServer\Config\*.*" "%ServerFolder%\@DesolationServer\Config" /q /y
:storeLibredexLog
if %StoreLibredexLogs% == false goto Start
cls
if not exist "%serverFolder%\LibredexLogs\" mkdir "%ServerFolder%\LibredexLogs"
if exist "%ServerFolder%\LibRedExLogFile.txt" (
copy /Y "%ServerFolder%\LibRedExLogFile.txt" "%ServerFolder%\LibredexLogs\LibRedExLogFile_%date:~-4%-%date:~6,2%-%date:~3,2%_%time:~0,2%-%time:~3,2%-%time:~6,2%.txt"
:: TODO Add option to remove file automatically if log count > X (Add ability to define this)
)
:StartServer
cls
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment