summaryrefslogtreecommitdiff
path: root/rpm
diff options
context:
space:
mode:
authorBrian Samek <brian.samek@mongodb.com>2016-11-21 11:47:48 -0500
committerBrian Samek <brian.samek@mongodb.com>2016-11-21 17:14:58 -0500
commitc5c023f1ee091e90044036bf15befa6a2a53421a (patch)
treeaebacbeb070ff8f97b22ddd7b7210ba6d11858e4 /rpm
parentcf4d9f77e5bcb609272721bc87b03a795fa21b1f (diff)
downloadmongo-c5c023f1ee091e90044036bf15befa6a2a53421a.tar.gz
SERVER-27087 Escape nested quotes in rpm init script
(cherry picked from commit ee159798d3f6e4a22f19c4ed1dfb31d207dcfcaf)
Diffstat (limited to 'rpm')
-rwxr-xr-xrpm/init.d-mongod2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpm/init.d-mongod b/rpm/init.d-mongod
index 19d9bf90adb..56539ef4d42 100755
--- a/rpm/init.d-mongod
+++ b/rpm/init.d-mongod
@@ -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()