diff options
author | Ben Kohler <bkohler@gentoo.org> | 2020-04-14 12:48:09 -0500 |
---|---|---|
committer | Ben Kohler <bkohler@gentoo.org> | 2020-04-14 12:54:27 -0500 |
commit | dec01d375dab043eaf11cf012958e9843745705f (patch) | |
tree | c2b8b0d964f29d45f0e977be5aa22b0b669aad8c /net-wireless | |
parent | sys-cluster/ceph-15.2.1: Version bump, add missing deps (bug #717204) (diff) | |
download | gentoo-dec01d375dab043eaf11cf012958e9843745705f.tar.gz gentoo-dec01d375dab043eaf11cf012958e9843745705f.tar.bz2 gentoo-dec01d375dab043eaf11cf012958e9843745705f.zip |
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 <bkohler@gentoo.org>
Diffstat (limited to 'net-wireless')
-rw-r--r-- | net-wireless/unifi/files/mongod-wrapper | 9 |
1 files 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 "$@" |