Check that tor gets installed

This commit is contained in:
Bob Mottram 2016-02-15 11:34:09 +00:00
parent 5b1168d90d
commit f2157d3e06
1 changed files with 4 additions and 0 deletions

View File

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