diff options
author | Andrew Lewman <andrew@torproject.org> | 2006-08-08 01:42:52 +0000 |
---|---|---|
committer | Andrew Lewman <andrew@torproject.org> | 2006-08-08 01:42:52 +0000 |
commit | 982fb59d98b2dd1524d815bce2da35ce7b708c23 (patch) | |
tree | 1ece0d941b1ae64c8d669d26a9b8537bc34a2c14 /contrib/osx | |
parent | 1b7ad5aed3063b0f2fb66b6a6f50dadf5c76d15f (diff) | |
download | tor-982fb59d98b2dd1524d815bce2da35ce7b708c23.tar.gz tor-982fb59d98b2dd1524d815bce2da35ce7b708c23.zip |
Update preflight to save Privoxy configs as well
svn:r6989
Diffstat (limited to 'contrib/osx')
-rw-r--r-- | contrib/osx/TorPreFlight | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/contrib/osx/TorPreFlight b/contrib/osx/TorPreFlight index d83b9afdcd..7bf313c82c 100644 --- a/contrib/osx/TorPreFlight +++ b/contrib/osx/TorPreFlight @@ -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 |