Improved grep in init scripts
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
echo -n "Starting mbsebbs:"
|
||||
|
||||
# Find the MBSE_ROOT from the /etc/passwd file.
|
||||
MBSE_ROOT=`cat /etc/passwd | grep mbse: | awk -F ':' '{ print $6}'`
|
||||
MBSE_ROOT=`cat /etc/passwd | grep ^mbse: | awk -F ':' '{ print $6}'`
|
||||
|
||||
if [ "${MBSE_ROOT}" = "" ]
|
||||
then
|
||||
|
Reference in New Issue
Block a user