1
0
Fork 0
peertube/scripts/danger/clean/server.sh
2016-05-19 20:37:43 +02:00

8 lines
233 B
Bash
Executable file

#!/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