diff options
Diffstat (limited to 'scripts/clean/server/test.sh')
-rwxr-xr-x | scripts/clean/server/test.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/clean/server/test.sh b/scripts/clean/server/test.sh new file mode 100755 index 000000000..927671dd4 --- /dev/null +++ b/scripts/clean/server/test.sh | |||
@@ -0,0 +1,6 @@ | |||
1 | #!/usr/bin/env sh | ||
2 | |||
3 | for i in $(seq 1 6); do | ||
4 | printf "use peertube-test%s;\ndb.dropDatabase();" "$i" | mongo | ||
5 | rm -rf "./test$i" | ||
6 | done | ||