-
Notifications
You must be signed in to change notification settings - Fork 2
/
restore.sh
26 lines (19 loc) · 876 Bytes
/
restore.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/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
cp blooming-onion/config/ghost/config.production.json.orig /var/www/ghost/config.production.json
echo 'Restoring torrc...'
cp blooming-onion/config/tor/torrc.orig /etc/tor/torrc
#echo 'Removing auto-upgrades config...'
#rm /etc/apt/apt.conf.d/20auto-upgrades
# 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