From dec01d375dab043eaf11cf012958e9843745705f Mon Sep 17 00:00:00 2001 From: Ben Kohler Date: Tue, 14 Apr 2020 12:48:09 -0500 Subject: [PATCH] net-wireless/unifi: mongod-wrapper improvements Thanks to Jaco Kroon Closes: https://bugs.gentoo.org/717396 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Ben Kohler --- net-wireless/unifi/files/mongod-wrapper | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/net-wireless/unifi/files/mongod-wrapper b/net-wireless/unifi/files/mongod-wrapper index 21637de50a0f..e8d65bb8aec9 100644 --- a/net-wireless/unifi/files/mongod-wrapper +++ b/net-wireless/unifi/files/mongod-wrapper @@ -2,5 +2,10 @@ # Remove --nohttpinterface argument, since it does not exist on MongoDB >= 3.6.x anymore # See https://community.ubnt.com/t5/UniFi-Routing-Switching/MongoDB-3-6/td-p/2195435 -remove_nohttpinterface_arg=$(echo $* | sed -e 's/--nohttpinterface//') -/usr/bin/mongod ${remove_nohttpinterface_arg} +for arg do + shift + [ "${arg}" = "--nohttpinterface" ] && continue + set -- "$@" "${arg}" +done + +exec /usr/bin/mongod "$@" -- 2.26.2