mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +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
|
||||
TORPATH="/Library/Tor/"
|
||||
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
|
||||
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
|
||||
|
||||
# Remove Tor and everything to do with it
|
||||
|
Loading…
Reference in New Issue
Block a user