Change how resetting works

This commit is contained in:
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

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