#!/bin/sh # 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 for arg do shift [ "${arg}" = "--nohttpinterface" ] && continue set -- "$@" "${arg}" done exec /usr/bin/mongod "$@"