diff options
author | Andrew Lewman <andrew@torproject.org> | 2007-10-17 11:37:42 +0000 |
---|---|---|
committer | Andrew Lewman <andrew@torproject.org> | 2007-10-17 11:37:42 +0000 |
commit | b545fb5f7ee878f6329ae27af70870376955af33 (patch) | |
tree | 8e8c9fddc2e88b8d4311c46e94c2a5d59f916806 | |
parent | 427eb4649b802971719542e52776c8973aa7a60a (diff) | |
download | tor-b545fb5f7ee878f6329ae27af70870376955af33.tar.gz tor-b545fb5f7ee878f6329ae27af70870376955af33.zip |
backport osx 10.5 (leopard) fixes for uninstaller.
svn:r11996
-rwxr-xr-x | contrib/osx/uninstall_tor_bundle.sh | 6 |
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 |