From 7f37e22c060936df8037adc5bdcbd6940c83a08a Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Mon, 13 May 2024 02:14:38 +0200 Subject: [PATCH] use an OR in place of an AND to be sure to open ports if needed --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"