aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorAndrew Lewman <andrew@torproject.org>2006-05-16 05:48:08 +0000
committerAndrew Lewman <andrew@torproject.org>2006-05-16 05:48:08 +0000
commitf6c9741c839528bb6834ad1be66d177bd92763f4 (patch)
tree639fe2312760dfc8e2e3f1ce1450b0daa05285bc /contrib
parentf7ba9d77e4bd697ec805d8eb2d145126baecf14c (diff)
downloadtor-f6c9741c839528bb6834ad1be66d177bd92763f4.tar
tor-f6c9741c839528bb6834ad1be66d177bd92763f4.tar.gz
Fixed //Library/Tor in Tor.loc for osx
svn:r6454
Diffstat (limited to 'contrib')
-rw-r--r--contrib/osx/TorPostflight5
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/osx/TorPostflight b/contrib/osx/TorPostflight
index d1efd726c..cd4992494 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