|
@@ -74,14 +74,16 @@ fn_start_tmux(){
|
|
|
|
|
|
|
|
# Log rotation
|
|
# Log rotation
|
|
|
fn_script_log_info "Rotating log files"
|
|
fn_script_log_info "Rotating log files"
|
|
|
- if [ "${engine}" == "unreal2" ]; then
|
|
|
|
|
- if [ -f "${gamelog}" ]; then
|
|
|
|
|
- mv "${gamelog}" "${gamelogdate}"
|
|
|
|
|
- fi
|
|
|
|
|
|
|
+ if [ "${engine}" == "unreal2" ]&&[ -f "${gamelog}" ]; then
|
|
|
|
|
+ mv "${gamelog}" "${gamelogdate}"
|
|
|
|
|
+ fi
|
|
|
|
|
+ if [ -f "${lgsmlog}" ]; then
|
|
|
mv "${lgsmlog}" "${lgsmlogdate}"
|
|
mv "${lgsmlog}" "${lgsmlogdate}"
|
|
|
|
|
+ fi
|
|
|
|
|
+ if [ -f "${consolelog}" ]; then
|
|
|
mv "${consolelog}" "${consolelogdate}"
|
|
mv "${consolelog}" "${consolelogdate}"
|
|
|
fi
|
|
fi
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
# Create lockfile
|
|
# Create lockfile
|
|
|
date > "${rootdir}/${lockselfname}"
|
|
date > "${rootdir}/${lockselfname}"
|
|
|
cd "${executabledir}"
|
|
cd "${executabledir}"
|