summaryrefslogtreecommitdiff
path: root/source4/script
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-06-12 07:48:53 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:18:01 -0500
commit72ac7767829257a6fb9c1b7243f399370f4af5c3 (patch)
tree669e8e5f4b84499aa7ec29c5b988e2fa38ffb3d7 /source4/script
parentfb3874bfacb7fb7199e415f8ad16598790ec9c36 (diff)
downloadsamba-72ac7767829257a6fb9c1b7243f399370f4af5c3.tar.gz
samba-72ac7767829257a6fb9c1b7243f399370f4af5c3.tar.bz2
samba-72ac7767829257a6fb9c1b7243f399370f4af5c3.zip
r7506: handle the case where cron does not setup $USER
(This used to be commit d4c1a1be0acbb11df4cfef5e454787b3f86f4181)
Diffstat (limited to 'source4/script')
-rwxr-xr-xsource4/script/tests/selftest.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/script/tests/selftest.sh b/source4/script/tests/selftest.sh
index 880a2f097b..c4f8a5a5a9 100755
--- a/source4/script/tests/selftest.sh
+++ b/source4/script/tests/selftest.sh
@@ -3,8 +3,11 @@ DOMAIN=SAMBADOMAIN
USERNAME=administrator
REALM=$DOMAIN
PASSWORD=penguin
-ROOT=$USER
SRCDIR=`pwd`
+ROOT=$USER
+if test -z "$ROOT"; then
+ ROOT=`whoami`
+fi
if [ $# -lt 1 ]
then