summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Lewman <andrew@torproject.org>2007-10-17 11:37:42 +0000
committerAndrew Lewman <andrew@torproject.org>2007-10-17 11:37:42 +0000
commitb545fb5f7ee878f6329ae27af70870376955af33 (patch)
tree8e8c9fddc2e88b8d4311c46e94c2a5d59f916806
parent427eb4649b802971719542e52776c8973aa7a60a (diff)
downloadtor-b545fb5f7ee878f6329ae27af70870376955af33.tar.gz
tor-b545fb5f7ee878f6329ae27af70870376955af33.zip
backport osx 10.5 (leopard) fixes for uninstaller.
svn:r11996
-rwxr-xr-xcontrib/osx/uninstall_tor_bundle.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/contrib/osx/uninstall_tor_bundle.sh b/contrib/osx/uninstall_tor_bundle.sh
index 18b346005c..d0120be537 100755
--- a/contrib/osx/uninstall_tor_bundle.sh
+++ b/contrib/osx/uninstall_tor_bundle.sh
@@ -128,7 +128,11 @@ done < $PACKAGE_LIST_SRC
## nuke the user created by the install process.
echo ". Removing created user $TOR_USER"
-niutil -destroy . /users/$TOR_USER
+if [ -x /usr/bin/dscl ]; then
+ dscl . -delete /users/$TOR_USER
+else
+ niutil -destroy . /users/$TOR_USER
+fi
## clean up