diff --git a/process/accept-orders.py b/process/accept-orders.py index 5a7124d43..7c22df8fc 100755 --- a/process/accept-orders.py +++ b/process/accept-orders.py @@ -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? diff --git a/process/orders-accept b/process/orders-accept index dfadb3aea..b1e87eb1d 100755 --- a/process/orders-accept +++ b/process/orders-accept @@ -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