diff --git a/scripts/upgrade b/scripts/upgrade index 1a4e326..45829be 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -95,7 +95,7 @@ fi if [ "${dns_over_https:-}" = true ]; then # if DoH and DoQ are closed - if ! yunohost firewall list | grep -q " $port_dns_over_tls$" && ! yunohost firewall list | grep -q " $port_dns_over_quic$"; then + if ! yunohost firewall list | grep -q " $port_dns_over_tls$" || ! yunohost firewall list | grep -q " $port_dns_over_quic$"; then ynh_print_info --message="Opening DoH and DoQ ports..." ynh_exec_warn_less yunohost firewall allow Both "$port_dns_over_tls" --no-reload ynh_exec_warn_less yunohost firewall allow UDP "$port_dns_over_quic"