This repository has been archived on 2025-05-04. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
codecombat/scripts/vagrant/fillMongo.sh
2015-03-28 18:27:38 -04:00

14 lines
351 B
Bash
Executable file

#!/bin/bash
# Original content copyright (c) 2014 dpen2000 licensed under the MIT license
mkdir -p /vagrant/temp
cd /vagrant/temp
rm -f dump.tar.gz
rm -rf dump
wget http://analytics.codecombat.com:8080/dump.tar.gz
tar xzvf dump.tar.gz --no-same-owner
mongorestore --drop
if [ -d /vagrant/temp/backup ]
then
cd /vagrant/temp/backup
mongorestore
fi