瀏覽代碼

Remove any existing onion service

Bob Mottram 8 年之前
父節點
當前提交
285fdcd181
共有 2 個文件被更改,包括 4 次插入0 次删除
  1. 3
    0
      src/freedombone-app-rss
  2. 1
    0
      src/freedombone-utils-onion

+ 3
- 0
src/freedombone-app-rss 查看文件

279
 }
279
 }
280
 
280
 
281
 function install_rss_main {
281
 function install_rss_main {
282
+    function_check remove_onion_service
283
+    remove_onion_service ttrss ${RSS_READER_ONION_PORT} ${RSS_MOBILE_READER_ONION_PORT
284
+
282
     apt-get -yq install php-gettext php5-curl php5-gd php5-mysql git
285
     apt-get -yq install php-gettext php5-curl php5-gd php5-mysql git
283
     apt-get -yq install curl php-xml-parser php5-mcrypt
286
     apt-get -yq install curl php-xml-parser php5-mcrypt
284
 
287
 

+ 1
- 0
src/freedombone-utils-onion 查看文件

73
     onion_service_port_to=$2
73
     onion_service_port_to=$2
74
     #sed -i "/stealth ${onion_service_name}/d" /etc/tor/torrc
74
     #sed -i "/stealth ${onion_service_name}/d" /etc/tor/torrc
75
     sed -i "/hidden_service_${onion_service_name}/d" /etc/tor/torrc
75
     sed -i "/hidden_service_${onion_service_name}/d" /etc/tor/torrc
76
+    sed -i "/hidden_service_${onion_service_name}_mobile/d" /etc/tor/torrc
76
     sed -i "/127.0.0.1:${onion_service_port_to}/d" /etc/tor/torrc
77
     sed -i "/127.0.0.1:${onion_service_port_to}/d" /etc/tor/torrc
77
     if [ $3 ]; then
78
     if [ $3 ]; then
78
         sed -i "/127.0.0.1:${3}/d" /etc/tor/torrc
79
         sed -i "/127.0.0.1:${3}/d" /etc/tor/torrc