mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-08 00:31:58 +01:00
e118feb3ab
Signed-off-by: Janos SUTO <sj@acts.hu>
23 lines
327 B
Bash
Executable File
23 lines
327 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -o nounset
|
|
set -o errexit
|
|
set -o pipefail
|
|
|
|
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
|
|
|
|
date > $TMPFILE
|
|
|
|
function finish {
|
|
rm -f $TMPFILE
|
|
}
|
|
|
|
trap finish EXIT
|
|
|
|
cd /var/piler/imap
|
|
|
|
pilerimport -G >/dev/null
|