From 982fb59d98b2dd1524d815bce2da35ce7b708c23 Mon Sep 17 00:00:00 2001 From: Andrew Lewman Date: Tue, 8 Aug 2006 01:42:52 +0000 Subject: Update preflight to save Privoxy configs as well svn:r6989 --- contrib/osx/TorPreFlight | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/contrib/osx/TorPreFlight b/contrib/osx/TorPreFlight index d83b9afdc..7bf313c82 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 -- cgit v1.2.3