Fix MONGODB_ENABLE_IPV6 by setting ipv6 config flag (#284)
MONGODB_ENABLE_IPV6 is currently setting directoryPerDB instead Signed-off-by: Nicolae Rosia <nicolae.rosia@gmail.com>
This commit is contained in:
parent
66a88478e4
commit
46a65ef657
|
|
@ -383,7 +383,7 @@ mongodb_set_net_conf() {
|
||||||
mongodb_config_apply_regex "port:.*" "port: $MONGODB_PORT_NUMBER" "$conf_file_path"
|
mongodb_config_apply_regex "port:.*" "port: $MONGODB_PORT_NUMBER" "$conf_file_path"
|
||||||
fi
|
fi
|
||||||
if [[ -n "$MONGODB_ENABLE_IPV6" ]]; then
|
if [[ -n "$MONGODB_ENABLE_IPV6" ]]; then
|
||||||
mongodb_config_apply_regex "directoryPerDB:.*" "directoryPerDB: $({ is_boolean_yes "$MONGODB_ENABLE_IPV6" && echo 'true'; } || echo 'false')" "$conf_file_path"
|
mongodb_config_apply_regex "ipv6:.*" "ipv6: $({ is_boolean_yes "$MONGODB_ENABLE_IPV6" && echo 'true'; } || echo 'false')" "$conf_file_path"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
debug "$conf_file_name mounted. Skipping setting port and IPv6 settings"
|
debug "$conf_file_name mounted. Skipping setting port and IPv6 settings"
|
||||||
|
|
|
||||||
|
|
@ -383,7 +383,7 @@ mongodb_set_net_conf() {
|
||||||
mongodb_config_apply_regex "port:.*" "port: $MONGODB_PORT_NUMBER" "$conf_file_path"
|
mongodb_config_apply_regex "port:.*" "port: $MONGODB_PORT_NUMBER" "$conf_file_path"
|
||||||
fi
|
fi
|
||||||
if [[ -n "$MONGODB_ENABLE_IPV6" ]]; then
|
if [[ -n "$MONGODB_ENABLE_IPV6" ]]; then
|
||||||
mongodb_config_apply_regex "directoryPerDB:.*" "directoryPerDB: $({ is_boolean_yes "$MONGODB_ENABLE_IPV6" && echo 'true'; } || echo 'false')" "$conf_file_path"
|
mongodb_config_apply_regex "ipv6:.*" "ipv6: $({ is_boolean_yes "$MONGODB_ENABLE_IPV6" && echo 'true'; } || echo 'false')" "$conf_file_path"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
debug "$conf_file_name mounted. Skipping setting port and IPv6 settings"
|
debug "$conf_file_name mounted. Skipping setting port and IPv6 settings"
|
||||||
|
|
|
||||||
|
|
@ -383,7 +383,7 @@ mongodb_set_net_conf() {
|
||||||
mongodb_config_apply_regex "port:.*" "port: $MONGODB_PORT_NUMBER" "$conf_file_path"
|
mongodb_config_apply_regex "port:.*" "port: $MONGODB_PORT_NUMBER" "$conf_file_path"
|
||||||
fi
|
fi
|
||||||
if [[ -n "$MONGODB_ENABLE_IPV6" ]]; then
|
if [[ -n "$MONGODB_ENABLE_IPV6" ]]; then
|
||||||
mongodb_config_apply_regex "directoryPerDB:.*" "directoryPerDB: $({ is_boolean_yes "$MONGODB_ENABLE_IPV6" && echo 'true'; } || echo 'false')" "$conf_file_path"
|
mongodb_config_apply_regex "ipv6:.*" "ipv6: $({ is_boolean_yes "$MONGODB_ENABLE_IPV6" && echo 'true'; } || echo 'false')" "$conf_file_path"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
debug "$conf_file_name mounted. Skipping setting port and IPv6 settings"
|
debug "$conf_file_name mounted. Skipping setting port and IPv6 settings"
|
||||||
|
|
|
||||||
|
|
@ -383,7 +383,7 @@ mongodb_set_net_conf() {
|
||||||
mongodb_config_apply_regex "port:.*" "port: $MONGODB_PORT_NUMBER" "$conf_file_path"
|
mongodb_config_apply_regex "port:.*" "port: $MONGODB_PORT_NUMBER" "$conf_file_path"
|
||||||
fi
|
fi
|
||||||
if [[ -n "$MONGODB_ENABLE_IPV6" ]]; then
|
if [[ -n "$MONGODB_ENABLE_IPV6" ]]; then
|
||||||
mongodb_config_apply_regex "directoryPerDB:.*" "directoryPerDB: $({ is_boolean_yes "$MONGODB_ENABLE_IPV6" && echo 'true'; } || echo 'false')" "$conf_file_path"
|
mongodb_config_apply_regex "ipv6:.*" "ipv6: $({ is_boolean_yes "$MONGODB_ENABLE_IPV6" && echo 'true'; } || echo 'false')" "$conf_file_path"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
debug "$conf_file_name mounted. Skipping setting port and IPv6 settings"
|
debug "$conf_file_name mounted. Skipping setting port and IPv6 settings"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue