]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Update preflight to save Privoxy configs as well
authorAndrew Lewman <andrew@torproject.org>
Tue, 8 Aug 2006 01:42:52 +0000 (01:42 +0000)
committerAndrew Lewman <andrew@torproject.org>
Tue, 8 Aug 2006 01:42:52 +0000 (01:42 +0000)
svn:r6989

contrib/osx/TorPreFlight

index d83b9afdcd69f9b7cd14879e25573a4a51319958..7bf313c82ca4a66f94655bbbf91775e53042a5fd 100644 (file)
@@ -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