aboutsummaryrefslogtreecommitdiffstats
path: root/script/load-exim-logs
diff options
context:
space:
mode:
Diffstat (limited to 'script/load-exim-logs')
-rwxr-xr-xscript/load-exim-logs6
1 files changed, 5 insertions, 1 deletions
diff --git a/script/load-exim-logs b/script/load-exim-logs
index 00b6b9825..66de207be 100755
--- a/script/load-exim-logs
+++ b/script/load-exim-logs
@@ -2,6 +2,10 @@
LOC=`dirname "$0"`
+cd "$LOC"/..
+source commonlib/shlib/deployfns
+read_conf config/general
+
# Specific file if specified
if [ x$1 != x ]
then
@@ -16,7 +20,7 @@ fi
# Load in last three days worth of logs (if they've been modified)
cd "$LOC"
-LATEST=$( ls /var/log/exim4/exim-mainlog-* 2>/dev/null | sort | tail -3 )
+LATEST=$( ls $OPTION_MTA_LOG_PATH 2>/dev/null | sort | tail -3 )
for X in $LATEST
do
bundle exec ./runner 'EximLog.load_file("'$X'")'