Преглед изворни кода

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