Explorar o código

Try 3 to fix apparmor denied in syslog at Snap Candidate. Changed MongoDB --host back to --bind_ip.

Thanks to webenefits and xet7 !

Fixes #4855
Lauri Ojansivu hai 8 meses
pai
achega
6c54b38cdf
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      snap-src/bin/mongodb-control

+ 2 - 2
snap-src/bin/mongodb-control

@@ -88,9 +88,9 @@ if [ -z "${MONGO_URL}" ]; then
     if [ "nill" != "${MONGODB_BIND_UNIX_SOCKET}" ] && [ "x" != "x${MONGODB_BIND_UNIX_SOCKET}" ]; then
         BIND_OPTIONS+=" --unixSocketPrefix ${MONGODB_BIND_UNIX_SOCKET}"
     fi
-    # Newest MongoDB uses --host, not anymore --bind_ip
+    # Newest MongoDB uses --host or --bind_ip
     if [ "x" != "x${MONGODB_BIND_IP}" ]; then
-        BIND_OPTIONS+=" --host $MONGODB_BIND_IP"
+        BIND_OPTIONS+=" --bind_ip $MONGODB_BIND_IP"
     fi
     if [ "x" != "x${MONGODB_PORT}" ]; then
         BIND_OPTIONS+=" --port ${MONGODB_PORT}"