hold lockfile only during python script

This commit is contained in:
Enno Rehling 2019-05-08 21:08:14 +02:00
parent 4efe63d3e2
commit ef90806ca0
1 changed files with 1 additions and 1 deletions

View File

@ -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"