From 0bd9d8644cbd7157b68736627b1c0085c789dac5 Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Mon, 13 May 2024 02:18:17 +0200 Subject: [PATCH] fix a if condition --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 45829be..963ec6d 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -37,7 +37,7 @@ elif [ -n "${expose_port_53:-}" ] || [ "${expose_port_53:-}" = false ]; then ynh_app_setting_set --app="$app" --key=expose_port_53 --value="$expose_port_53" fi -if [ -z "${dns_over_https:-}" ] && [ "${dns_over_https:-}" = true ]; then +if [ -z "${dns_over_https:-}" ] || [ "${dns_over_https:-}" = true ]; then dns_over_https="true" ynh_app_setting_set --app="$app" --key=dns_over_https --value=$dns_over_https elif [ -n "${dns_over_https:-}" ] || [ "${dns_over_https:-}" = false ]; then