forked from github/server
hold lockfile only during python script
This commit is contained in:
parent
4efe63d3e2
commit
ef90806ca0
|
@ -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"
|
|
||||||
|
|
Loading…
Reference in New Issue