forked from github/server
export orders using php tools
This commit is contained in:
parent
14f4750411
commit
de40103a2e
|
@ -16,12 +16,9 @@ else
|
||||||
mv orders.dir "orders.dir.$TURN"
|
mv orders.dir "orders.dir.$TURN"
|
||||||
mkdir -p orders.dir
|
mkdir -p orders.dir
|
||||||
fi
|
fi
|
||||||
rm -f "orders.$TURN"
|
|
||||||
find "orders.dir.$TURN" -maxdepth 1 -regextype posix-extended -regex "orders.dir.$TURN/(turn|upload)-.*" -type f -printf "%T+\t%p\n" | sort | cut -f2 | while read -r
|
|
||||||
do
|
|
||||||
tr -d '\r' < "$REPLY" >> "orders.$TURN"
|
|
||||||
done
|
|
||||||
|
|
||||||
|
rm -f "orders.$TURN"
|
||||||
|
php ../../orders-php/cli.php -d "orders.dir.$TURN/orders.db" export | tr -d '\r' > "../orders.$TURN"
|
||||||
lockfile -r3 -l120 orders.queue.lock
|
lockfile -r3 -l120 orders.queue.lock
|
||||||
if [ -e orders.queue ] ; then
|
if [ -e orders.queue ] ; then
|
||||||
mv orders.queue "orders.queue.bak.$TURN"
|
mv orders.queue "orders.queue.bak.$TURN"
|
||||||
|
|
Loading…
Reference in New Issue