]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/clean/server/test.sh
Update videojs -> 6
[github/Chocobozzz/PeerTube.git] / scripts / clean / server / test.sh
index 927671dd415cb5ca5c0e6575457766915a6218be..35d3ad50f2579704b053cb18e435287c99f8c615 100755 (executable)
@@ -1,6 +1,7 @@
 #!/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"
+  createdb "peertube_test$i"
 done