From: Andrew Lewman Date: Tue, 8 Aug 2006 01:42:52 +0000 (+0000) Subject: Update preflight to save Privoxy configs as well X-Git-Tag: tor-0.1.2.1-alpha~97 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=982fb59d98b2dd1524d815bce2da35ce7b708c23;p=thirdparty%2Ftor.git Update preflight to save Privoxy configs as well svn:r6989 --- 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