increase maxfiles to 50, handle error when no file generated.

This commit is contained in:
Enno Rehling 2019-12-23 15:20:39 +01:00
parent 08f7d267b8
commit face5eeb31
2 changed files with 9 additions and 6 deletions

View File

@ -52,7 +52,7 @@ hostname = socket.gethostname()
orderbase = "orders.dir"
sendmail = True
# maximum number of reports per sender:
maxfiles = 30
maxfiles = 50
# write headers to file?
writeheaders = True
# reject all html email?

View File

@ -17,10 +17,13 @@ mkdir -p orders.dir
cd orders.dir
lockfile -r3 -l120 "$LOCKFILE"
eval "$(python "$BIN/accept-orders.py" "$@")"
rm -f "$LOCKFILE"
filename=$(basename "$ACCEPT_FILE")
email="$ACCEPT_MAIL"
if [ -d "$ERESSEA/orders-php" ]
if [ -e "$ACCEPT_FILE" ]
then
php "$ERESSEA/orders-php/cli.php" insert "$filename" "$lang" "$email"
rm -f "$LOCKFILE"
filename=$(basename "$ACCEPT_FILE")
email="$ACCEPT_MAIL"
if [ -d "$ERESSEA/orders-php" ]
then
php "$ERESSEA/orders-php/cli.php" insert "$filename" "$lang" "$email"
fi
fi