[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r6989: Update preflight to save Privoxy configs as well (tor/trunk/contrib/osx)



Author: phobos
Date: 2006-08-07 21:42:52 -0400 (Mon, 07 Aug 2006)
New Revision: 6989

Modified:
   tor/trunk/contrib/osx/TorPreFlight
Log:
Update preflight to save Privoxy configs as well


Modified: tor/trunk/contrib/osx/TorPreFlight
===================================================================
--- tor/trunk/contrib/osx/TorPreFlight	2006-08-05 17:53:32 UTC (rev 6988)
+++ tor/trunk/contrib/osx/TorPreFlight	2006-08-08 01:42:52 UTC (rev 6989)
@@ -7,11 +7,16 @@
 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