aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Landauer <matthew@openaustralia.org>2012-10-10 16:40:05 +1100
committerMatthew Landauer <matthew@openaustralia.org>2012-10-10 16:40:05 +1100
commitea5df5680d44d9650d529b5f015188e2a3f9de8d (patch)
tree1aa2ddd93460bd352818d58d314407d28dc30bc6
parentf4dcfa9604fa28745c350972f6cf174363d122db (diff)
Use modification time of log file rather than filename
-rwxr-xr-xscript/load-exim-logs2
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'")'