Commit 982fb59d authored by Andrew Lewman's avatar Andrew Lewman
Browse files

Update preflight to save Privoxy configs as well


svn:r6989
parent 1b7ad5ae
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -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