piler/util/import.sh
Janos SUTO 3c57d5fec7 Fixed import.sh locking
Signed-off-by: Janos SUTO <sj@acts.hu>
2020-10-27 22:39:16 +01:00

13 lines
225 B
Bash
Executable File

#!/bin/bash
set -o errexit
set -o pipefail
export PATH=$PATH:/usr/libexec/piler:/usr/local/libexec/piler
pushd /var/piler/imap
[[ "${FLOCKER}" != "$0" ]] && exec env FLOCKER="$0" flock -en "$0" "$0" "$@"
imapfetch.py -i