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
#
# $Id$
#
# checkbasic - A script for mbse bbs that checks if your
# installation is correct. If it is then
# normal installation is allowed. If it is
# pristine, basic installation must be done.
# If it bad or incomplete installed it will
# give an errormessage.
#
# v1.00 08-Oct-2000 (c) Michiel Broek.
if [ "`grep mbse: /etc/passwd`" != "" ]; then
if [ "`grep bbs: /etc/group`" != "" ]; then
@ -23,7 +23,10 @@ if [ "`grep mbse: /etc/passwd`" != "" ]; then
exit 1
fi
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
fi
else