diff options
Diffstat (limited to 'contrib/osx/TorPostflight')
-rw-r--r-- | contrib/osx/TorPostflight | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/osx/TorPostflight b/contrib/osx/TorPostflight index a8991bb36..4db9cf01e 100644 --- a/contrib/osx/TorPostflight +++ b/contrib/osx/TorPostflight @@ -114,6 +114,14 @@ if [ -f $PACKAGE_PATH/Contents/Resources/package_list.txt ]; then cp $PACKAGE_PATH/Contents/Resources/package_list.txt $TARGET/package_list.txt fi +# If the pre-install script did it's thing, it should have saved the +# config and server keys; put these back and clean up +if [ -f ~/TorSavedMe ]; then + TARBALL=`cat ~/TorSavedMe` + tar zxf $TARBALL -C / + rm ~/TorSavedMe ~/$TARBALL +fi + # Determine how to start by OS Version if [ $OS = "tiger" ]; then if [ -f $PACKAGE_PATH/Contents/Resources/net.freehaven.tor.plist ]; then |