From 72ac7767829257a6fb9c1b7243f399370f4af5c3 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 12 Jun 2005 07:48:53 +0000 Subject: r7506: handle the case where cron does not setup $USER (This used to be commit d4c1a1be0acbb11df4cfef5e454787b3f86f4181) --- source4/script/tests/selftest.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source4/script/tests') 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 -- cgit