forked from github/server
increase maxfiles to 50, handle error when no file generated.
This commit is contained in:
parent
08f7d267b8
commit
face5eeb31
|
@ -52,7 +52,7 @@ hostname = socket.gethostname()
|
||||||
orderbase = "orders.dir"
|
orderbase = "orders.dir"
|
||||||
sendmail = True
|
sendmail = True
|
||||||
# maximum number of reports per sender:
|
# maximum number of reports per sender:
|
||||||
maxfiles = 30
|
maxfiles = 50
|
||||||
# write headers to file?
|
# write headers to file?
|
||||||
writeheaders = True
|
writeheaders = True
|
||||||
# reject all html email?
|
# reject all html email?
|
||||||
|
|
|
@ -17,6 +17,8 @@ mkdir -p orders.dir
|
||||||
cd orders.dir
|
cd orders.dir
|
||||||
lockfile -r3 -l120 "$LOCKFILE"
|
lockfile -r3 -l120 "$LOCKFILE"
|
||||||
eval "$(python "$BIN/accept-orders.py" "$@")"
|
eval "$(python "$BIN/accept-orders.py" "$@")"
|
||||||
|
if [ -e "$ACCEPT_FILE" ]
|
||||||
|
then
|
||||||
rm -f "$LOCKFILE"
|
rm -f "$LOCKFILE"
|
||||||
filename=$(basename "$ACCEPT_FILE")
|
filename=$(basename "$ACCEPT_FILE")
|
||||||
email="$ACCEPT_MAIL"
|
email="$ACCEPT_MAIL"
|
||||||
|
@ -24,3 +26,4 @@ if [ -d "$ERESSEA/orders-php" ]
|
||||||
then
|
then
|
||||||
php "$ERESSEA/orders-php/cli.php" insert "$filename" "$lang" "$email"
|
php "$ERESSEA/orders-php/cli.php" insert "$filename" "$lang" "$email"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in New Issue