mirror of
				https://bitbucket.org/jsuto/piler.git
				synced 2025-10-31 12:12:27 +01:00 
			
		
		
		
	| @@ -4,19 +4,11 @@ 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 | ||||
| export PATH=$PATH:/usr/libexec/piler:/usr/local/libexec/piler | ||||
|  | ||||
| if [[ -f $TMPFILE ]]; then exit 1; fi | ||||
| pushd /var/piler/imap | ||||
|  | ||||
| date > $TMPFILE | ||||
|  | ||||
| function finish { | ||||
|    rm -f $TMPFILE | ||||
| } | ||||
|  | ||||
| trap finish EXIT | ||||
|  | ||||
| cd /var/piler/imap | ||||
|  | ||||
| pilerimport -G >/dev/null | ||||
| exec 200 > "/tmp/${0}-lock" || exit 1 | ||||
| flock 200 || exit 1 | ||||
| imapfetch.py -i | ||||
| flock -u 200 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user