summaryrefslogtreecommitdiff
path: root/rpm
diff options
context:
space:
mode:
authorBrian Samek <brian.samek@mongodb.com>2016-11-17 11:52:27 -0500
committerBrian Samek <brian.samek@mongodb.com>2016-11-18 16:25:37 -0500
commit87b829caf901c1ec65a55252f7e088d5aa30c195 (patch)
treed418088fa94c94175cb08175eb7665a39312af4c /rpm
parent27071b2f3e476737f0f86b07ae997617748f6848 (diff)
downloadmongo-87b829caf901c1ec65a55252f7e088d5aa30c195.tar.gz
SERVER-27087 Escape nested quotes in RPM init script
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..fd77af305a2 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()