diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2012-10-10 16:40:05 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2012-10-10 16:40:05 +1100 |
commit | ea5df5680d44d9650d529b5f015188e2a3f9de8d (patch) | |
tree | 1aa2ddd93460bd352818d58d314407d28dc30bc6 | |
parent | f4dcfa9604fa28745c350972f6cf174363d122db (diff) |
Use modification time of log file rather than filename
-rwxr-xr-x | script/load-exim-logs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script/load-exim-logs b/script/load-exim-logs index 66de207be..ab21c3bb0 100755 --- a/script/load-exim-logs +++ b/script/load-exim-logs @@ -20,7 +20,7 @@ fi # Load in last three days worth of logs (if they've been modified) cd "$LOC" -LATEST=$( ls $OPTION_MTA_LOG_PATH 2>/dev/null | sort | tail -3 ) +LATEST=$( ls -rt $OPTION_MTA_LOG_PATH 2>/dev/null | tail -3 ) for X in $LATEST do bundle exec ./runner 'EximLog.load_file("'$X'")' |