Skip to content

Commit

Permalink
removed check, broken until torrc.orig fixed, DELETING HIDDEN SERVICE…
Browse files Browse the repository at this point in the history
… DANGERZONE
  • Loading branch information
corcra committed Mar 31, 2016
1 parent c32cb79 commit 0597c33
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,11 @@ cp blooming-onion/config/ghost/config.js.orig /var/www/ghost/config.js
echo 'Restoring torrc...'
cp blooming-onion/config/tor/torrc.orig /etc/tor/torrc

# DANGERZONE
echo 'REMOVING hidden service ***CANNOT UNDO*** (requires confirmation)...'
rm -i /var/lib/tor/hidden_service/*
# END DANGERZONE

echo 'Restarting services...'
service tor reload
service nginx reload

echo 'Confirming hidden service is gone...'
ONION_ADDRESS=`sudo cat /var/lib/tor/hidden_service/hostname`
if [ -n "$ONION_ADDRESS" ]
then
echo 'ERROR:' $ONION_ADDRESS 'still exists! :('
else
echo 'SUCCESS!'
fi

0 comments on commit 0597c33

Please sign in to comment.