瀏覽代碼

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