Added extra check for root without environment of mbse

This commit is contained in:
Michiel Broek 2004-09-14 19:35:59 +00:00
parent 66afeee573
commit e67668499a

View File

@ -1,13 +1,13 @@
#!/bin/sh #!/bin/sh
# #
# $Id$
#
# checkbasic - A script for mbse bbs that checks if your # checkbasic - A script for mbse bbs that checks if your
# installation is correct. If it is then # installation is correct. If it is then
# normal installation is allowed. If it is # normal installation is allowed. If it is
# pristine, basic installation must be done. # pristine, basic installation must be done.
# If it bad or incomplete installed it will # If it bad or incomplete installed it will
# give an errormessage. # give an errormessage.
#
# v1.00 08-Oct-2000 (c) Michiel Broek.
if [ "`grep mbse: /etc/passwd`" != "" ]; then if [ "`grep mbse: /etc/passwd`" != "" ]; then
if [ "`grep bbs: /etc/group`" != "" ]; then if [ "`grep bbs: /etc/group`" != "" ]; then
@ -23,7 +23,10 @@ if [ "`grep mbse: /etc/passwd`" != "" ]; then
exit 1 exit 1
fi fi
else else
echo "*** MBSE_ROOT environment is not set or you are not 'mbse' ***" echo "*** MBSE_ROOT environment is not set or you are not 'mbse' ***"
if [ "$LOGNAME" = "root" ]; then
echo "*** You seem to be root, did you use 'su -' instead of 'su' ***"
fi
exit 1 exit 1
fi fi
else else