From 285fdcd1818b37c594d4732e636bdf0366b4ed68 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 4 Dec 2016 21:54:21 +0000 Subject: [PATCH] Remove any existing onion service --- src/freedombone-app-rss | 3 +++ src/freedombone-utils-onion | 1 + 2 files changed, 4 insertions(+) diff --git a/src/freedombone-app-rss b/src/freedombone-app-rss index da86ea09..44eb3003 100755 --- a/src/freedombone-app-rss +++ b/src/freedombone-app-rss @@ -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 diff --git a/src/freedombone-utils-onion b/src/freedombone-utils-onion index ebec438a..aa6425fe 100755 --- a/src/freedombone-utils-onion +++ b/src/freedombone-utils-onion @@ -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