|
@@ -71,6 +71,7 @@ function wait_for_onion_service {
|
71
|
71
|
function remove_onion_service {
|
72
|
72
|
onion_service_name="$1"
|
73
|
73
|
onion_service_port_to=$2
|
|
74
|
+
|
74
|
75
|
#sed -i "/stealth ${onion_service_name}/d" /etc/tor/torrc
|
75
|
76
|
sed -i "/hidden_service_${onion_service_name}/d" /etc/tor/torrc
|
76
|
77
|
sed -i "/hidden_service_${onion_service_name}_mobile/d" /etc/tor/torrc
|
|
@@ -84,10 +85,14 @@ function remove_onion_service {
|
84
|
85
|
fi
|
85
|
86
|
fi
|
86
|
87
|
fi
|
87
|
|
- if [[ $(onion_service_exists ${onion_service_name}) == "1" ]]; then
|
|
88
|
+ if [ -d /var/lib/tor/hidden_service_${onion_service_name} ]; then
|
88
|
89
|
shred -zu /var/lib/tor/hidden_service_${onion_service_name}/*
|
89
|
90
|
rm -rf /var/lib/tor/hidden_service_${onion_service_name}
|
90
|
91
|
fi
|
|
92
|
+ if [ -d /var/lib/tor/hidden_service_${onion_service_name}_mobile ]; then
|
|
93
|
+ shred -zu /var/lib/tor/hidden_service_${onion_service_name}_mobile/*
|
|
94
|
+ rm -rf /var/lib/tor/hidden_service_${onion_service_name}_mobile
|
|
95
|
+ fi
|
91
|
96
|
remove_completion_param "${onion_service_name} onion domain"
|
92
|
97
|
onion_update
|
93
|
98
|
}
|