ソースを参照

Ensure that the tor config files remain active even if the original torrc was overwritten

Bob Mottram 7 年 前
コミット
5b5050a708
共有1 個のファイルを変更した4 個の追加0 個の削除を含む
  1. 4
    0
      src/freedombone-utils-onion

+ 4
- 0
src/freedombone-utils-onion ファイルの表示

35
 
35
 
36
 function torrc_migrate {
36
 function torrc_migrate {
37
     if [ -f $ONION_SERVICES_FILE ]; then
37
     if [ -f $ONION_SERVICES_FILE ]; then
38
+        if grep -q "#%include /etc/torrc.d" /etc/tor/torrc; then
39
+            sed -i 's|#%include /etc/torrc.d|%include /etc/torrc.d|g' /etc/tor/torrc
40
+            systemctl restart tor
41
+        fi
38
         return
42
         return
39
     fi
43
     fi
40
     systemctl stop tor
44
     systemctl stop tor