From ef90806ca0060c930b0167d45c9d5d28fca477be Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Wed, 8 May 2019 21:08:14 +0200 Subject: [PATCH] hold lockfile only during python script --- process/orders-accept | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/process/orders-accept b/process/orders-accept index 0873352e0..99398e64f 100755 --- a/process/orders-accept +++ b/process/orders-accept @@ -16,10 +16,10 @@ 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" ] then php "$ERESSEA/orders-php/cli.php" insert "$filename" "$email" fi -rm -f "$LOCKFILE"