1
0
Fork 0
peertube/scripts/clean_test.sh

9 lines
198 B
Bash
Raw Normal View History

2015-06-09 11:41:40 -04:00
#!/bin/bash
basePath=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
for i in $(seq 1 6); do
printf "use peertube-test%s;\ndb.dropDatabase();" "$i" | mongo
rm -rf "$basePath/../test$i"
done