forked from gurock/testrail-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcleanup.sh
More file actions
executable file
·27 lines (24 loc) · 811 Bytes
/
cleanup.sh
File metadata and controls
executable file
·27 lines (24 loc) · 811 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env bash
echo
echo "##################################################################################"
echo " TestRail cleanup"
echo
echo " This script will do a cleanup and remove eveything in _opt, _mysql, _cassandra + the config.php and the .env file."
echo " It will also shut down TestRail"
echo " You will need 'sudo' installed to run this script."
echo
echo
echo " Use this script with caution!"
echo " BE AWARE THAT THIS CAN NOT BE UN-DONE!"
echo
echo "###################################################################################"
echo
read -p " Type 'yes' to continue or use 'Ctrl+C' to abort: " confirm
if [ "$confirm" = 'yes' ]; then
sudo rm -rf _opt/* _mysql/* _cassandra/* _config/config.php
docker-compose down -v
else
echo
echo "Aborting..."
exit -1
fi