[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r11996: backport osx 10.5 (leopard) fixes for uninstaller. (tor/branches/tor-0_1_2-patches/contrib/osx)



Author: phobos
Date: 2007-10-17 07:37:42 -0400 (Wed, 17 Oct 2007)
New Revision: 11996

Modified:
   tor/branches/tor-0_1_2-patches/contrib/osx/uninstall_tor_bundle.sh
Log:
backport osx 10.5 (leopard) fixes for uninstaller.


Modified: tor/branches/tor-0_1_2-patches/contrib/osx/uninstall_tor_bundle.sh
===================================================================
--- tor/branches/tor-0_1_2-patches/contrib/osx/uninstall_tor_bundle.sh	2007-10-16 18:47:32 UTC (rev 11995)
+++ tor/branches/tor-0_1_2-patches/contrib/osx/uninstall_tor_bundle.sh	2007-10-17 11:37:42 UTC (rev 11996)
@@ -128,7 +128,11 @@
 
 ## 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