2018-02-04 04:30:16 +00:00
|
|
|
.DEFAULT_GOAL := setup
|
|
|
|
|
|
|
|
setup:
|
|
|
|
sudo pip3 install -r requirements.txt
|
2018-07-30 00:43:28 +00:00
|
|
|
-@cd onionr/static-data/ui/; ./compile.py
|
2018-02-04 04:30:16 +00:00
|
|
|
|
|
|
|
install:
|
2018-03-03 22:18:57 +00:00
|
|
|
sudo rm -rf /usr/share/onionr/
|
|
|
|
sudo rm -f /usr/bin/onionr
|
2018-02-04 04:30:16 +00:00
|
|
|
sudo cp -rp ./onionr /usr/share/onionr
|
|
|
|
sudo sh -c "echo \"#!/bin/sh\ncd /usr/share/onionr/\n./onionr.py \\\"\\\$$@\\\"\" > /usr/bin/onionr"
|
|
|
|
sudo chmod +x /usr/bin/onionr
|
|
|
|
sudo chown -R `whoami` /usr/share/onionr/
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
sudo rm -rf /usr/share/onionr
|
|
|
|
sudo rm -f /usr/bin/onionr
|
|
|
|
|
|
|
|
test:
|
2018-05-15 06:16:40 +00:00
|
|
|
@./RUN-LINUX.sh stop
|
|
|
|
@sleep 1
|
2018-03-03 22:18:57 +00:00
|
|
|
@rm -rf onionr/data-backup
|
|
|
|
@mv onionr/data onionr/data-backup | true > /dev/null 2>&1
|
2018-07-02 08:13:18 +00:00
|
|
|
-@cd onionr; ./tests.py;
|
2018-03-03 22:18:57 +00:00
|
|
|
@rm -rf onionr/data
|
|
|
|
@mv onionr/data-backup onionr/data | true > /dev/null 2>&1
|
|
|
|
|
2018-04-16 03:11:59 +00:00
|
|
|
soft-reset:
|
2018-04-21 01:20:26 +00:00
|
|
|
@echo "Soft-resetting Onionr..."
|
2018-08-17 04:21:21 +00:00
|
|
|
rm -f onionr/data/blocks/*.dat onionr/data/*.db onionr/data/block-nonces.dat | true > /dev/null 2>&1
|
2018-04-21 01:20:26 +00:00
|
|
|
@./RUN-LINUX.sh version | grep -v "Failed" --color=always
|
2018-04-16 03:11:59 +00:00
|
|
|
|
|
|
|
reset:
|
|
|
|
@echo "Hard-resetting Onionr..."
|
|
|
|
rm -rf onionr/data/ | true > /dev/null 2>&1
|
2018-05-07 06:55:03 +00:00
|
|
|
#@./RUN-LINUX.sh version | grep -v "Failed" --color=always
|
2018-05-11 05:18:39 +00:00
|
|
|
|
|
|
|
plugins-reset:
|
|
|
|
@echo "Resetting plugins..."
|
|
|
|
rm -rf onionr/data/plugins/ | true > /dev/null 2>&1
|
|
|
|
@./RUN-LINUX.sh version | grep -v "Failed" --color=always
|