From 3bcb78b3aff565996ee0e2aa96bce7f1bdd6d66a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 24 Nov 2015 08:33:59 +0100 Subject: Make the network auto sufficient (eject bad pods with scores) --- scripts/clean_test.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/clean_test.sh b/scripts/clean_test.sh index 8868cbddf..e46b5ecd5 100755 --- a/scripts/clean_test.sh +++ b/scripts/clean_test.sh @@ -1,5 +1,6 @@ #!/bin/bash -printf "use peertube-test1;\ndb.dropDatabase();\nuse peertube-test2;\ndb.dropDatabase();\nuse peertube-test3;\ndb.dropDatabase();" | mongo - -rm -rf ./test1 ./test2 ./test3 +for i in $(seq 1 6); do + printf "use peertube-test%s;\ndb.dropDatabase();" "$i" | mongo + rm -rf "./test$i" +done -- cgit v1.2.3