Change how resetting works

master
Arinerron 2018-04-15 20:11:59 -07:00
parent 8022781a8f
commit af2192856a
No known key found for this signature in database
GPG Key ID: 99383627861C62F0
1 changed files with 8 additions and 4 deletions

View File

@ -22,8 +22,12 @@ test:
@rm -rf onionr/data @rm -rf onionr/data
@mv onionr/data-backup onionr/data | true > /dev/null 2>&1 @mv onionr/data-backup onionr/data | true > /dev/null 2>&1
reset: soft-reset:
rm -f onionr/data/blocks/*.dat | true > /dev/null 2>&1 rm -f onionr/data/blocks/*.dat | true > /dev/null 2>&1
rm -f onionr/data/peers.db | true > /dev/null 2>&1 rm -f onionr/data/*.db | true > /dev/null 2>&1
rm -f onionr/data/blocks.db | true > /dev/null 2>&1
rm -f onionr/data/address.db | true > /dev/null 2>&1 reset:
@echo "Hard-resetting Onionr..."
rm -rf onionr/data/ | true > /dev/null 2>&1
@./RUN-LINUX.sh version | grep -v "Failed" --color=always