The checkbasic script uses more tricks to see if you are mbse su to root before install
This commit is contained in:
parent
02dd62bb07
commit
6a6b804d7f
@ -3,6 +3,10 @@ $Id$
|
|||||||
|
|
||||||
v0.83.21 10-Jun-2006
|
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:
|
mbsetup:
|
||||||
In nodes setup added check for paths when directory sessions
|
In nodes setup added check for paths when directory sessions
|
||||||
are selected.
|
are selected.
|
||||||
|
@ -12,6 +12,13 @@
|
|||||||
if [ "`grep mbse: /etc/passwd`" != "" ]; then
|
if [ "`grep mbse: /etc/passwd`" != "" ]; then
|
||||||
if [ "`grep bbs: /etc/group`" != "" ]; then
|
if [ "`grep bbs: /etc/group`" != "" ]; then
|
||||||
if [ -n "$MBSE_ROOT" ]; 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
|
if [ "$LOGNAME" = "mbse" ]; then
|
||||||
#
|
#
|
||||||
# Looks good, normal mbse user and environment is set.
|
# 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 " Make sure you are root and type ./SETUP.sh and"
|
||||||
echo " read the file INSTALL for instructions."
|
echo " read the file INSTALL for instructions."
|
||||||
fi
|
fi
|
||||||
|
exit 1
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user