diff options
Diffstat (limited to 'contrib/osx')
-rw-r--r-- | contrib/osx/TorPreFlight | 13 |
1 files changed, 13 insertions, 0 deletions
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 + |