diff options
author | Andrew Lewman <andrew@torproject.org> | 2006-07-26 23:52:59 +0000 |
---|---|---|
committer | Andrew Lewman <andrew@torproject.org> | 2006-07-26 23:52:59 +0000 |
commit | 99fc0aba61ff800b9b7d2fdcd33da6a87e268872 (patch) | |
tree | 9c021b75f1ab13270f2c0c9c7cee81c827029e93 /contrib/osx | |
parent | a815225683840d82a6d252978e4d34af42c7cff8 (diff) | |
download | tor-99fc0aba61ff800b9b7d2fdcd33da6a87e268872.tar.gz tor-99fc0aba61ff800b9b7d2fdcd33da6a87e268872.zip |
OSX pre-install script to clean up Tor and force a fresh install, but
save the server keys if they exist.
svn:r6911
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 + |