|
|
@@ -16,6 +16,17 @@ if [ -n "${consolelog}" ]; then
|
|
|
fi
|
|
|
fi
|
|
|
|
|
|
+# For games not displaying a console, and having logs into their game folder
|
|
|
+if [ -n ${gamelogfile} ]; then
|
|
|
+ if [ -n $(find ${systemdir} -name gamelog*.log ) ]; then
|
|
|
+ fn_printinfo "Moving game logs to ${gamelogdir}"
|
|
|
+ fn_scriptlog "Moving game logs to ${gamelogdir}"
|
|
|
+ echo -en "\n"
|
|
|
+ sleep1
|
|
|
+ mv "${systemdir}"/gamelog*.log "${gamelogdir}"
|
|
|
+ fi
|
|
|
+fi
|
|
|
+
|
|
|
# Log manager will start the cleanup if it finds logs older than "${logdays}"
|
|
|
if [ $(find "${scriptlogdir}"/ -type f -mtime +"${logdays}"|wc -l) -ne "0" ]; then
|
|
|
fn_printdots "Starting"
|