svn commit: samba r7506 - in branches/SAMBA_4_0/source/script/tests: .

tridge at samba.org tridge at samba.org
Sun Jun 12 07:48:54 GMT 2005


Author: tridge
Date: 2005-06-12 07:48:53 +0000 (Sun, 12 Jun 2005)
New Revision: 7506

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=7506

Log:
handle the case where cron does not setup $USER




Modified:
   branches/SAMBA_4_0/source/script/tests/selftest.sh


Changeset:
Modified: branches/SAMBA_4_0/source/script/tests/selftest.sh
===================================================================
--- branches/SAMBA_4_0/source/script/tests/selftest.sh	2005-06-12 07:03:32 UTC (rev 7505)
+++ branches/SAMBA_4_0/source/script/tests/selftest.sh	2005-06-12 07:48:53 UTC (rev 7506)
@@ -3,8 +3,11 @@
 USERNAME=administrator
 REALM=$DOMAIN
 PASSWORD=penguin
+SRCDIR=`pwd`
 ROOT=$USER
-SRCDIR=`pwd`
+if test -z "$ROOT"; then
+    ROOT=`whoami`
+fi
 
 if [ $# -lt 1 ]
 then



More information about the samba-cvs mailing list