From: Andrew Lewman Date: Wed, 26 Jul 2006 23:52:59 +0000 (+0000) Subject: OSX pre-install script to clean up Tor and force a fresh install, but X-Git-Tag: tor-0.1.1.23~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99fc0aba61ff800b9b7d2fdcd33da6a87e268872;p=thirdparty%2Ftor.git OSX pre-install script to clean up Tor and force a fresh install, but save the server keys if they exist. svn:r6911 --- diff --git a/contrib/osx/TorPreFlight b/contrib/osx/TorPreFlight new file mode 100644 index 0000000000..8cfb53bca8 --- /dev/null +++ b/contrib/osx/TorPreFlight @@ -0,0 +1,13 @@ +#!/bin/sh +# TorPreFlight is invoked before the install begins + +# Find the server keys, if they exist and save them, just in case +if [ -d /Library/Tor/var/lib/tor/keys ]; then + tar zcf ~/`date "+%Y-%m-%d"`-Tor-ServerKeys.backup.tar.gz /Library/Tor/var/lib/tor/keys +fi + +# Remove Tor and everything to do with it +if [ -f /Library/Tor/uninstall_tor_bundle.sh ]; then + /Library/Tor/uninstall_tor_bundle.sh +fi +