summaryrefslogtreecommitdiff
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 11:47:48 -0500
commitee159798d3f6e4a22f19c4ed1dfb31d207dcfcaf (patch)
treea9f57cf4dc028f7dadd26bc81e5a7d7cd903ef1c
parent337df9553665d0a4a87ac66f6bd53159b87f67c0 (diff)
downloadmongo-ee159798d3f6e4a22f19c4ed1dfb31d207dcfcaf.tar.gz
SERVER-27087 Escape nested quotes in rpm init script
-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 fd77af305a2..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()