Added extra check for root without environment of mbse
This commit is contained in:
parent
66afeee573
commit
e67668499a
@ -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
|
||||
|
Reference in New Issue
Block a user