Fix enable tor regression
This commit is contained in:
parent
cd19220993
commit
4686898519
@ -84,11 +84,11 @@ popd
|
||||
|
||||
pushd /etc
|
||||
sudo rm -f resolv.conf
|
||||
sudo ln -s resolv.conf.backup resolv.conf
|
||||
sudo cp -p resolv.conf.backup resolv.conf
|
||||
popd
|
||||
|
||||
# Enable Tor
|
||||
if [ "${1}" == "whonix-gateway" ]; then
|
||||
if [ "${1}" == "--torgateway" ]; then
|
||||
sudo sed -i 's/#DisableNetwork 0/DisableNetwork 0/g' /etc/tor/torrc
|
||||
fi
|
||||
|
||||
|
@ -38,12 +38,12 @@ fi
|
||||
# ------------------------------------------------------------------------------
|
||||
# Restore whonix resolv.conf
|
||||
# ------------------------------------------------------------------------------
|
||||
if [ -L "$INSTALLDIR/etc/resolv.conf" ]; then
|
||||
pushd "$INSTALLDIR/etc"
|
||||
sudo rm -f resolv.conf
|
||||
sudo ln -s resolv.conf.anondist resolv.conf
|
||||
{
|
||||
rm -f resolv.conf
|
||||
cp -p resolv.conf.anondist resolv.conf
|
||||
}
|
||||
popd
|
||||
fi
|
||||
|
||||
# --------------------------------------------------------------------------
|
||||
# Copy over any extra files that may be needed that are located in
|
||||
|
Loading…
Reference in New Issue
Block a user