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 <bkohler@gentoo.org>
# 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 "$@"