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 cd orders.dir
lockfile -r3 -l120 "$LOCKFILE" lockfile -r3 -l120 "$LOCKFILE"
eval "$(python "$BIN/accept-orders.py" "$@")" eval "$(python "$BIN/accept-orders.py" "$@")"
rm -f "$LOCKFILE"
filename=$(basename "$ACCEPT_FILE") filename=$(basename "$ACCEPT_FILE")
email="$ACCEPT_MAIL" email="$ACCEPT_MAIL"
if [ -d "$ERESSEA/orders-php" ] if [ -d "$ERESSEA/orders-php" ]
then then
php "$ERESSEA/orders-php/cli.php" insert "$filename" "$email" php "$ERESSEA/orders-php/cli.php" insert "$filename" "$email"
fi fi
rm -f "$LOCKFILE"