Remove any existing onion service

This commit is contained in:
Bob Mottram 2016-12-04 21:54:21 +00:00
parent 96af60614e
commit 285fdcd181
2 changed files with 4 additions and 0 deletions

View File

@ -279,6 +279,9 @@ function rss_modifications {
}
function install_rss_main {
function_check remove_onion_service
remove_onion_service ttrss ${RSS_READER_ONION_PORT} ${RSS_MOBILE_READER_ONION_PORT
apt-get -yq install php-gettext php5-curl php5-gd php5-mysql git
apt-get -yq install curl php-xml-parser php5-mcrypt

View File

@ -73,6 +73,7 @@ function remove_onion_service {
onion_service_port_to=$2
#sed -i "/stealth ${onion_service_name}/d" /etc/tor/torrc
sed -i "/hidden_service_${onion_service_name}/d" /etc/tor/torrc
sed -i "/hidden_service_${onion_service_name}_mobile/d" /etc/tor/torrc
sed -i "/127.0.0.1:${onion_service_port_to}/d" /etc/tor/torrc
if [ $3 ]; then
sed -i "/127.0.0.1:${3}/d" /etc/tor/torrc