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:
Nicolae Rosia 2021-08-24 18:13:24 +03:00 committed by GitHub
parent 66a88478e4
commit 46a65ef657
4 changed files with 4 additions and 4 deletions

View File

@ -383,7 +383,7 @@ mongodb_set_net_conf() {
mongodb_config_apply_regex "port:.*" "port: $MONGODB_PORT_NUMBER" "$conf_file_path"
fi
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
else
debug "$conf_file_name mounted. Skipping setting port and IPv6 settings"

View File

@ -383,7 +383,7 @@ mongodb_set_net_conf() {
mongodb_config_apply_regex "port:.*" "port: $MONGODB_PORT_NUMBER" "$conf_file_path"
fi
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
else
debug "$conf_file_name mounted. Skipping setting port and IPv6 settings"

View File

@ -383,7 +383,7 @@ mongodb_set_net_conf() {
mongodb_config_apply_regex "port:.*" "port: $MONGODB_PORT_NUMBER" "$conf_file_path"
fi
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
else
debug "$conf_file_name mounted. Skipping setting port and IPv6 settings"

View File

@ -383,7 +383,7 @@ mongodb_set_net_conf() {
mongodb_config_apply_regex "port:.*" "port: $MONGODB_PORT_NUMBER" "$conf_file_path"
fi
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
else
debug "$conf_file_name mounted. Skipping setting port and IPv6 settings"