Update preflight to save Privoxy configs as well

svn:r6989
This commit is contained in:
Andrew Lewman 2006-08-08 01:42:52 +00:00
parent 1b7ad5aed3
commit 982fb59d98

View File

@ -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