mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-27 11:40:12 +01:00
22 lines
300 B
Bash
Executable File
22 lines
300 B
Bash
Executable File
#!/bin/bash
|
|
|
|
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
|
|
PRIORITY=mail.error
|
|
TMPFILE=/var/run/piler/import.tmp
|
|
|
|
if [ -f $TMPFILE ]; then exit 1; fi
|
|
|
|
date > $TMPFILE
|
|
|
|
function finish {
|
|
rm -f $TMPFILE
|
|
}
|
|
|
|
trap finish EXIT
|
|
|
|
cd /var/piler/imap
|
|
|
|
pilerimport -G >/dev/null
|
|
|
|
|