diff options
-rw-r--r-- | contrib/osx/TorPostflight | 5 |
1 files changed, 5 insertions, 0 deletions
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 |