aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/danger/clean/server.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/danger/clean/server.sh')
-rwxr-xr-xscripts/danger/clean/server.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/danger/clean/server.sh b/scripts/danger/clean/server.sh
new file mode 100755
index 000000000..0a85eb249
--- /dev/null
+++ b/scripts/danger/clean/server.sh
@@ -0,0 +1,8 @@
1#!/usr/bin/env sh
2
3read -p "This will remove certs, uploads, database (dev) and logs. Are you sure? " -n 1 -r
4
5if [[ "$REPLY" =~ ^[Yy]$ ]]; then
6 rm -rf ./certs ./logs ./uploads
7 printf "use peertube-dev;\ndb.dropDatabase();" | mongo
8fi