TorPreFlight 405 B

12345678910111213
  1. #!/bin/sh
  2. # TorPreFlight is invoked before the install begins
  3. # Find the server keys, if they exist and save them, just in case
  4. if [ -d /Library/Tor/var/lib/tor/keys ]; then
  5. tar zcf ~/`date "+%Y-%m-%d"`-Tor-ServerKeys.backup.tar.gz /Library/Tor/var/lib/tor/keys
  6. fi
  7. # Remove Tor and everything to do with it
  8. if [ -f /Library/Tor/uninstall_tor_bundle.sh ]; then
  9. /Library/Tor/uninstall_tor_bundle.sh
  10. fi