]> git.pld-linux.org Git - packages/exim-lite.git/commitdiff
- get spooldir from exim config auto/th/exim-4_63-3
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 21 Sep 2006 06:46:16 +0000 (06:46 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    exim.cron.db -> 1.8

exim.cron.db

index d7ba4126c2e4d96c73c7efc5fb93af1e44477166..4c0da79b8000dc37fbbcf616c90f46e6bc41cd41 100644 (file)
@@ -1,5 +1,10 @@
 #!/bin/sh
 cd /
-/usr/bin/find /var/spool/exim/db -maxdepth 1 -name '*.lockfile' -or -type f -printf '%f\0' | xargs -0r -n 1 /usr/bin/exim_tidydb /var/spool/exim > /dev/null
+
+SPOOLDIR="$(/usr/bin/exim -bP spool_directory | /bin/sed 's/.*=[[:space:]]\(.*\)/\1/')"
+
+[ ! -d "$SPOOLDIR" ] && echo "Spooldir [$SPOOLDIR] is not a directory" && exit 1
+
+/usr/bin/find $SPOOLDIR -maxdepth 1 -name '*.lockfile' -or -type f -printf '%f\0' | xargs -0r -n 1 /usr/bin/exim_tidydb $SPOOLDIR > /dev/null
 
 exit 0
This page took 0.087613 seconds and 4 git commands to generate.