From 406db34092a8f7baf1e6bb3d7a27ad8275538d0d Mon Sep 17 00:00:00 2001 From: Marcus Whybrow Date: Thu, 31 May 2012 04:38:06 +0100 Subject: [PATCH] Fixed a bug in the server "logroll" command. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The wrong path–pointing to where previous logs can be found–was written to the log file when rolled. --- msm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msm b/msm index 03f4e63..bf9fc64 100755 --- a/msm +++ b/msm @@ -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