2016-05-19 13:37:43 -05:00
|
|
|
#!/bin/bash
|
2016-04-30 04:17:50 -05:00
|
|
|
|
|
|
|
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
|