Fixed a bug in the server "logroll" command.

The wrong path–pointing to where previous logs can be found–was written
to the log file when rolled.
This commit is contained in:
Marcus Whybrow 2012-05-31 04:38:06 +01:00
parent 5290040f38
commit 406db34092

2
msm
View File

@ -905,7 +905,7 @@ server_log_roll() {
if [ -e "${server_log_archive_path[$1]}/${file_name}.gz" ]; then
as_user ${server_user_name[$1]} "cp \"/dev/null\" ${server_log[$1]}"
as_user ${server_user_name[$1]} "echo \"Previous logs can be found at \\\"${server_log_archive_path[$i]}\\\"\" > ${server_log[$1]}"
as_user ${server_user_name[$1]} "echo \"Previous logs can be found at \\\"${server_log_archive_path[$1]}\\\"\" > ${server_log[$1]}"
else
echoerr "Failed."
return 1