Browse Source

Update preflight to save Privoxy configs as well

svn:r6989
Andrew Lewman 19 years ago
parent
commit
982fb59d98
1 changed files with 7 additions and 2 deletions
  1. 7 2
      contrib/osx/TorPreFlight

+ 7 - 2
contrib/osx/TorPreFlight

@@ -7,11 +7,16 @@ if [ -f /Library/StartupItems/Tor/Tor.loc ]; then
 else
 else
 	TORPATH="/Library/Tor/"
 	TORPATH="/Library/Tor/"
 fi
 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
 # Backup all of Tor, just in case
 if [ -d $TORPATH ]; then
 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
 fi
 
 
 # Remove Tor and everything to do with it
 # Remove Tor and everything to do with it