From f6c9741c839528bb6834ad1be66d177bd92763f4 Mon Sep 17 00:00:00 2001 From: Andrew Lewman Date: Tue, 16 May 2006 05:48:08 +0000 Subject: [PATCH] Fixed //Library/Tor in Tor.loc for osx svn:r6454 --- contrib/osx/TorPostflight | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/contrib/osx/TorPostflight b/contrib/osx/TorPostflight index d1efd726cc..cd49924947 100644 --- a/contrib/osx/TorPostflight +++ b/contrib/osx/TorPostflight @@ -14,6 +14,11 @@ TARGET=$2/Library/Tor TORDIR=$TARGET/var/lib/tor LOGDIR=$TARGET/var/log/tor +# Check defaults for TARGET +if [ "$TARGET" == "//Library/Tor" ]; then + TARGET=/Library/Tor +fi + # Create user $TORUSER in group daemon. If it's already there, great. $ADDSYSUSER $TORUSER "Tor System user" $TORDIR