mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-07-06 22:09:09 +02:00
@ -1,6 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -o nounset
|
|
||||||
set -o errexit
|
set -o errexit
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
@ -8,7 +7,6 @@ export PATH=$PATH:/usr/libexec/piler:/usr/local/libexec/piler
|
|||||||
|
|
||||||
pushd /var/piler/imap
|
pushd /var/piler/imap
|
||||||
|
|
||||||
exec 200 > "/tmp/${0}-lock" || exit 1
|
[[ "${FLOCKER}" != "$0" ]] && exec env FLOCKER="$0" flock -en "$0" "$0" "$@"
|
||||||
flock 200 || exit 1
|
|
||||||
imapfetch.py -i
|
imapfetch.py -i
|
||||||
flock -u 200
|
|
||||||
|
Reference in New Issue
Block a user