mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
OSX pre-install script to clean up Tor and force a fresh install, but
save the server keys if they exist. svn:r6911
This commit is contained in:
parent
a815225683
commit
99fc0aba61
13
contrib/osx/TorPreFlight
Normal file
13
contrib/osx/TorPreFlight
Normal file
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user