The checkbasic script uses more tricks to see if you are mbse su to root before install

This commit is contained in:
Michiel Broek 2006-07-02 11:07:36 +00:00
parent 02dd62bb07
commit 6a6b804d7f
2 changed files with 12 additions and 1 deletions

View File

@ -3,6 +3,10 @@ $Id$
v0.83.21 10-Jun-2006
install:
The checkbasic script uses more tricks to see if you are mbse
su to root before install.
mbsetup:
In nodes setup added check for paths when directory sessions
are selected.

View File

@ -12,6 +12,13 @@
if [ "`grep mbse: /etc/passwd`" != "" ]; then
if [ "`grep bbs: /etc/group`" != "" ]; then
if [ -n "$MBSE_ROOT" ]; then
if [ "$LOGNAME" = "root" ]; then
#
# Newer su versions change logname when su to root without
# environment change. Try to fix LOGNAME variable.
#
export LOGNAME="`who am i | awk -F ' ' '{ print $1 }'`"
fi
if [ "$LOGNAME" = "mbse" ]; then
#
# Looks good, normal mbse user and environment is set.
@ -39,5 +46,5 @@ else
echo " Make sure you are root and type ./SETUP.sh and"
echo " read the file INSTALL for instructions."
fi
exit 1