Skip to content

Commit

Permalink
Merge pull request #1 from huertanix/restore
Browse files Browse the repository at this point in the history
Restore
  • Loading branch information
huertanix committed Apr 11, 2016
2 parents 57abe9f + 0597c33 commit efbe062
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions restore.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env bash
# Blooming Onion (c) David Huerta, Stephanie Hyland. Distributed under the GPL v3 license. See LICENSE.txt for deets.

echo 'Restoring original configuration files!'

echo 'Restoring NGINX config...'
cp blooming-onion/config/nginx/ghost.orig /etc/nginx/sites-available/ghost
echo 'Restoring Ghost config...'
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

0 comments on commit efbe062

Please sign in to comment.