diff options
Diffstat (limited to 'source4/script/tests/selftest.sh')
-rwxr-xr-x | source4/script/tests/selftest.sh | 5 |
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 |