0
0
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:
Brian Samek 2016-11-17 11:52:27 -05:00
parent 27071b2f3e
commit 87b829caf9

View File

@ -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()