diff options
Diffstat (limited to 'net-wireless/unifi/files/mongod-wrapper')
-rwxr-xr-x | net-wireless/unifi/files/mongod-wrapper | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net-wireless/unifi/files/mongod-wrapper b/net-wireless/unifi/files/mongod-wrapper new file mode 100755 index 000000000000..21637de50a0f --- /dev/null +++ b/net-wireless/unifi/files/mongod-wrapper @@ -0,0 +1,6 @@ +#!/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 +remove_nohttpinterface_arg=$(echo $* | sed -e 's/--nohttpinterface//') +/usr/bin/mongod ${remove_nohttpinterface_arg} |