]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/clean/server/test.sh
typos (#246)
[github/Chocobozzz/PeerTube.git] / scripts / clean / server / test.sh
index 927671dd415cb5ca5c0e6575457766915a6218be..2ceb7124450bdb29a49efd5eb0b86b4eb501a350 100755 (executable)
@@ -1,6 +1,9 @@
 #!/usr/bin/env sh
 
 for i in $(seq 1 6); do
-  printf "use peertube-test%s;\ndb.dropDatabase();" "$i" | mongo
+  dropdb "peertube_test$i"
   rm -rf "./test$i"
+  rm -f "./config/local-test.json"
+  rm -f "./config/local-test-$i.json"
+  createdb "peertube_test$i"
 done