mirror of
https://github.com/msmhq/msm.git
synced 2024-08-30 18:12:35 +00:00
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:
parent
5290040f38
commit
406db34092
2
msm
2
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
|
||||
|
Loading…
Reference in New Issue
Block a user