]> git.pld-linux.org Git - packages/exim-lite.git/blob - exim.cron.db
- get spooldir from exim config
[packages/exim-lite.git] / exim.cron.db
1 #!/bin/sh
2 cd /
3
4 SPOOLDIR="$(/usr/bin/exim -bP spool_directory | /bin/sed 's/.*=[[:space:]]\(.*\)/\1/')"
5
6 [ ! -d "$SPOOLDIR" ] && echo "Spooldir [$SPOOLDIR] is not a directory" && exit 1
7
8 /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
9
10 exit 0
This page took 0.074386 seconds and 4 git commands to generate.