mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
SERVER-27087 Escape nested quotes in RPM init script
This commit is contained in:
parent
27071b2f3e
commit
87b829caf9
@ -38,7 +38,7 @@ else
|
||||
fi
|
||||
|
||||
# things from mongod.conf get there by mongod reading it
|
||||
PIDFILEPATH="`awk -F'[:=]' -v IGNORECASE=1 '/^[[:blank:]]*(processManagement\.)?pidfilepath[[:blank:]]*[:=][[:blank:]]*/{print $2}' "$CONFIGFILE" | tr -d "[:blank:]\"'" | awk -F'#' '{print $1}'`"
|
||||
PIDFILEPATH="`awk -F'[:=]' -v IGNORECASE=1 '/^[[:blank:]]*(processManagement\.)?pidfilepath[[:blank:]]*[:=][[:blank:]]*/{print $2}' "$CONFIGFILE" | tr -d '[:blank:]"' | awk -F'#' '{print $1}'`"
|
||||
PIDDIR=`dirname $PIDFILEPATH`
|
||||
|
||||
start()
|
||||
|
Loading…
Reference in New Issue
Block a user