diff --git a/ChangeLog b/ChangeLog index dcb44773..04dc0a57 100644 --- a/ChangeLog +++ b/ChangeLog @@ -33,6 +33,9 @@ v0.91.9 16-May-2007 mbuseradd: Added check for FreeBSD > 6.0 and use sysctl for security check. + script: + Improved grep in init scripts. + v0.91.8 26-Apr-2007 - 16-May-2007 diff --git a/script/init.Debian b/script/init.Debian index 970d00f2..f59f1c88 100644 --- a/script/init.Debian +++ b/script/init.Debian @@ -8,7 +8,7 @@ # For Debian SYSV init style. # 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 echo "MBSE BBS: No 'mbse' user in the password file." diff --git a/script/init.FreeBSD b/script/init.FreeBSD index f08c7793..c07e5345 100644 --- a/script/init.FreeBSD +++ b/script/init.FreeBSD @@ -8,7 +8,7 @@ # # 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 diff --git a/script/init.Gentoo b/script/init.Gentoo index d4e48108..ffbf04cf 100644 --- a/script/init.Gentoo +++ b/script/init.Gentoo @@ -8,7 +8,7 @@ # 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 echo "MBSE BBS: No 'mbse' user in the password file." diff --git a/script/init.NetBSD b/script/init.NetBSD index ab5289d3..6a4622be 100644 --- a/script/init.NetBSD +++ b/script/init.NetBSD @@ -23,7 +23,7 @@ mbsebbs_start() 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 diff --git a/script/init.OpenBSD b/script/init.OpenBSD index 6c4ed6d4..edfa388e 100644 --- a/script/init.OpenBSD +++ b/script/init.OpenBSD @@ -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 diff --git a/script/init.RedHat b/script/init.RedHat index 445eafef..7cb0973e 100644 --- a/script/init.RedHat +++ b/script/init.RedHat @@ -16,7 +16,7 @@ [ ${NETWORKING} = "no" ] && exit 1 # 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 diff --git a/script/init.Slackware b/script/init.Slackware index a95ed10c..3ab4bbaa 100644 --- a/script/init.Slackware +++ b/script/init.Slackware @@ -8,7 +8,7 @@ # # 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 diff --git a/script/init.SuSE b/script/init.SuSE index af05edc9..7af88ecb 100644 --- a/script/init.SuSE +++ b/script/init.SuSE @@ -12,7 +12,7 @@ ### END INIT INFO # 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