mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
Update preflight to save Privoxy configs as well
svn:r6989
This commit is contained in:
parent
1b7ad5aed3
commit
982fb59d98
@ -7,11 +7,16 @@ if [ -f /Library/StartupItems/Tor/Tor.loc ]; then
|
|||||||
else
|
else
|
||||||
TORPATH="/Library/Tor/"
|
TORPATH="/Library/Tor/"
|
||||||
fi
|
fi
|
||||||
echo $TORPATH
|
|
||||||
|
if [ -f /Library/StartupItems/Privoxy/Privoxy.loc ]; then
|
||||||
|
PRIVOXYPATH=`cat /Library/StartupItems/Privoxy/Privoxy.loc`
|
||||||
|
else
|
||||||
|
PRIVOXYPATH="/Library/Prioxy/"
|
||||||
|
fi
|
||||||
|
|
||||||
# Backup all of Tor, just in case
|
# Backup all of Tor, just in case
|
||||||
if [ -d $TORPATH ]; then
|
if [ -d $TORPATH ]; then
|
||||||
tar zcf /tmp/TorSavedMe.tar.gz $TORPATH/var/lib/tor $TORPATH/torrc
|
tar zcf /tmp/TorSavedMe.tar.gz $TORPATH/var/lib/tor $TORPATH/torrc $PRIVOXYPATH/config $PRIVOXYPATH/user.action
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Remove Tor and everything to do with it
|
# Remove Tor and everything to do with it
|
||||||
|
Loading…
Reference in New Issue
Block a user