From ac6df8b7081e5c31f952454e0f4fe6ad477b273c Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Wed, 27 Dec 2023 19:50:05 +0100 Subject: [PATCH] better if --- scripts/install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 9797faa..fa98bfc 100644 --- a/scripts/install +++ b/scripts/install @@ -14,7 +14,7 @@ source /usr/share/yunohost/helpers #================================================= ynh_script_progression --message="Storing installation settings..." --weight=2 -if [ "$dns_over_https" == "1" ]; then +if "$dns_over_https"; then dns_over_https="true" # no need to open the ports, as they were opened at the 'Provisioning ports' step else @@ -28,7 +28,7 @@ fi ynh_app_setting_set --app="$app" --key=dns_over_https --value="$dns_over_https" -if [ "$open_port_53" == "1" ]; then +if "$open_port_53"; then open_port_53="true" # if open_port_53 is true, we need to open port 53 ynh_exec_warn_less yunohost firewall allow Both 53