mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-28 07:59:02 +01:00
SERVER-9252 use [[:blank:]] instead of \s
This commit is contained in:
parent
5b762d52cc
commit
63e2213755
@ -22,8 +22,8 @@ SYSCONFIG="/etc/sysconfig/mongod"
|
||||
# FIXME: 1.9.x has a --shutdown flag that parses the config file and
|
||||
# shuts down the correct running pid, but that's unavailable in 1.8
|
||||
# for now. This can go away when this script stops supporting 1.8.
|
||||
DBPATH=`awk -F= '/^dbpath\s*=\s*/{print $2}' "$CONFIGFILE"`
|
||||
PIDFILE=`awk -F= '/^pidfilepath\s*=\s*/{print $2}' "$CONFIGFILE"`
|
||||
DBPATH=`awk -F= '/^dbpath[[:blank:]]*=[[:blank:]]*/{print $2}' "$CONFIGFILE"`
|
||||
PIDFILE=`awk -F= '/^pidfilepath[[:blank:]]*=[[:blank:]]*/{print $2}' "$CONFIGFILE"`
|
||||
mongod=${MONGOD-/usr/bin/mongod}
|
||||
|
||||
MONGO_USER=mongod
|
||||
|
Loading…
Reference in New Issue
Block a user