aboutsummaryrefslogblamecommitdiffhomepage
path: root/scripts/danger/clean/server.sh
blob: 1a0576112e3c059d13f4bbebb6109c15c33df31e (plain) (tree)
1
2
3
4
5
6
7
8
           






                                                                                          
#!/bin/bash

read -p "This will remove certs, uploads, database (dev) and logs. Are you sure? " -n 1 -r

if [[ "$REPLY" =~ ^[Yy]$ ]]; then
  rm -rf ./certs ./logs ./uploads
  printf "use peertube-dev;\ndb.dropDatabase();" | mongo
fi