2018-07-17 13:12:03 +02:00
|
|
|
echo ""
|
2018-07-29 01:33:54 +02:00
|
|
|
|
|
|
|
# load network
|
|
|
|
network=`cat .network`
|
|
|
|
|
2018-07-17 13:12:03 +02:00
|
|
|
echo "!!!! This will DELETE your personal data from the HDD !!!!"
|
|
|
|
echo "--> use the HDD with just blockchain in a fresh setup"
|
|
|
|
echo "Press ENTER to continue - CTRL+c to CANCEL"
|
|
|
|
read key
|
|
|
|
sudo dphys-swapfile swapoff
|
2018-07-29 01:33:54 +02:00
|
|
|
sudo systemctl stop ${network}d.service
|
2018-07-17 13:12:03 +02:00
|
|
|
sudo systemctl stop lnd.service
|
|
|
|
sudo rm -f -r /mnt/hdd/lnd
|
|
|
|
sudo rm -f /mnt/hdd/swapfile
|
2018-07-29 01:33:54 +02:00
|
|
|
sudo rm -f /mnt/hdd/${network}/${network}.conf
|
|
|
|
sudo rm -f /mnt/hdd/${network}/${network}.pid
|
|
|
|
sudo rm -f /mnt/hdd/${network}/*.dat
|
|
|
|
sudo rm -f /mnt/hdd/${network}/*.log
|
2018-08-19 15:00:23 +02:00
|
|
|
sudo rm -f /mnt/hdd/${network}/*.pid
|
2018-07-29 01:33:54 +02:00
|
|
|
sudo rm -f /mnt/hdd/${network}/testnet3/*.dat
|
|
|
|
sudo rm -f /mnt/hdd/${network}/testnet3/*.log
|
|
|
|
sudo rm -f /mnt/hdd/${network}/testnet3/.lock
|
|
|
|
sudo rm -f -r /mnt/hdd/${network}/database
|
2018-08-20 22:52:01 +02:00
|
|
|
sudo rm -f -r /mnt/hdd/tor
|
2018-07-29 01:33:54 +02:00
|
|
|
sudo chown admin:admin -R /mnt/hdd/${network}
|
2018-07-17 13:12:03 +02:00
|
|
|
echo "1" > /home/admin/.setup
|
|
|
|
echo "OK - the HDD is now clean"
|