ソースを参照

Check that tor gets installed

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

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

@@ -3699,6 +3699,10 @@ function install_tor {
3699 3699
         return
3700 3700
     fi
3701 3701
     apt-get -y install tor
3702
+    if [ ! -f /etc/tor/torrc ]; then
3703
+        echo 'Tor failed to install'
3704
+        exit 38259
3705
+    fi
3702 3706
     echo 'install_tor' >> $COMPLETION_FILE
3703 3707
 }
3704 3708