piler/util/import.sh

23 lines
327 B
Bash
Raw Normal View History

2013-08-23 13:46:27 +02:00
#!/bin/bash
set -o nounset
set -o errexit
set -o pipefail
2013-08-23 13:46:27 +02:00
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
TMPFILE=/var/run/piler/import.tmp
if [[ -f $TMPFILE ]]; then exit 1; fi
2013-08-23 13:46:27 +02:00
date > $TMPFILE
function finish {
rm -f $TMPFILE
}
trap finish EXIT
2013-08-24 15:10:44 +02:00
cd /var/piler/imap
2013-08-23 13:46:27 +02:00
pilerimport -G >/dev/null