Adjust boolean comparison to allow "false", "no", and "0" to all become "false"
This commit is contained in:
parent
076b6e4866
commit
c282d486e6
|
|
@ -245,7 +245,10 @@ rabbit_env_config() {
|
|||
local rawVal="$val"
|
||||
case "$conf" in
|
||||
fail_if_no_peer_cert|hipe_compile)
|
||||
[ -n "$val" ] && rawVal='true' || rawVal='false'
|
||||
case "${val,,}" in
|
||||
false|no|0|'') rawVal='false' ;;
|
||||
true|yes|1|*) rawVal='true' ;;
|
||||
esac
|
||||
;;
|
||||
|
||||
vm_memory_high_watermark) continue ;; # handled separately
|
||||
|
|
|
|||
|
|
@ -245,7 +245,10 @@ rabbit_env_config() {
|
|||
local rawVal="$val"
|
||||
case "$conf" in
|
||||
fail_if_no_peer_cert|hipe_compile)
|
||||
[ -n "$val" ] && rawVal='true' || rawVal='false'
|
||||
case "${val,,}" in
|
||||
false|no|0|'') rawVal='false' ;;
|
||||
true|yes|1|*) rawVal='true' ;;
|
||||
esac
|
||||
;;
|
||||
|
||||
vm_memory_high_watermark) continue ;; # handled separately
|
||||
|
|
|
|||
|
|
@ -245,7 +245,10 @@ rabbit_env_config() {
|
|||
local rawVal="$val"
|
||||
case "$conf" in
|
||||
fail_if_no_peer_cert|hipe_compile)
|
||||
[ -n "$val" ] && rawVal='true' || rawVal='false'
|
||||
case "${val,,}" in
|
||||
false|no|0|'') rawVal='false' ;;
|
||||
true|yes|1|*) rawVal='true' ;;
|
||||
esac
|
||||
;;
|
||||
|
||||
vm_memory_high_watermark) continue ;; # handled separately
|
||||
|
|
|
|||
Loading…
Reference in New Issue