mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-17 00:40:56 -05:00
Make gnu coreutils happy with the db import script.
This commit is contained in:
parent
d26daf1dc0
commit
89b9ffae20
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
DIR=`mktemp -dt coco`
|
||||
curl http://analytics.codecombat.com:8080/dump.tar.gz | tar -xC $DIR
|
||||
DIR=`mktemp -dt cocoXXXXXXXXXX`
|
||||
curl http://analytics.codecombat.com:8080/dump.tar.gz | tar -xzC $DIR
|
||||
|
||||
mongoexport --db coco --collection users --out $DIR/users.json
|
||||
mongorestore --drop --batchSize 100 $DIR/dump
|
||||
|
|
Loading…
Reference in a new issue