backport osx 10.5 (leopard) fixes for uninstaller.

svn:r11996
This commit is contained in:
Andrew Lewman 2007-10-17 11:37:42 +00:00
parent 427eb4649b
commit b545fb5f7e
1 changed files with 5 additions and 1 deletions

View File

@ -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