freebsd-ports/net-mgmt/unifi-lts/files/mongod.in
Mark Felder 5d306ca36e net-mgmt/unifi-lts: Fix support for Mongo 3.6+
Ubiquiti still hasn't fixed UniFi-LTS after this was reported ages ago, so
I guess every OS will have to fix this manually.

Reported by:	many
MFH:		2019Q1
2019-03-09 18:12:18 +00:00

6 lines
159 B
Bash

#!/bin/sh
# Remove argument that doesn't exist on mongodb 3.6+
ARGS="$(echo -n ${@} | /usr/bin/sed 's,--nohttpinterface,,')"
%%PREFIX%%/bin/mongod ${ARGS} &