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







                                                                                          
#!/usr/bin/env sh

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