From e2197f675acbdad6119a4393b4656ffc083b581b Mon Sep 17 00:00:00 2001 From: Gredin67 Date: Sun, 13 Aug 2023 18:41:16 +0200 Subject: [PATCH] double quotes --- config_panel.toml | 16 ++++++++-------- scripts/install | 2 +- scripts/upgrade | 4 ++-- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/config_panel.toml b/config_panel.toml index 54b7aa6..6f464ea 100644 --- a/config_panel.toml +++ b/config_panel.toml @@ -26,15 +26,15 @@ services = ["__APP__"] [main.registration.registration_disabled] ask = "Disable Registration from Element ?" type = "boolean" - yes = true - no = false + yes = "true" + no = "false" help = "If True, Registration of default user accounts from a Client App is disabled. If false and your server is federated, reCAPTCHA verification should be activated to avoid spamming the whole Matrix network." [main.registration.enable_registration_captcha] ask = "Require CAPTCHA verification for Registration." type = "boolean" - yes = true - no = false + yes = "true" + no = "false" help = "ReCAPTCHA API should be configured. See instructions https://matrix-org.github.io/dendrite/administration/registration#recaptcha-verification" bind = ":/opt/yunohost/__APP__/dendrite.yaml" visible = "!registration_disabled" @@ -42,8 +42,8 @@ services = ["__APP__"] [main.registration.guests_disabled] ask = "Disable guests registration." type = "boolean" - yes = true - no = false + yes = "true" + no = "false" help = "Guest registration is also disabled implicitly if Registration from Element is disabled." bind = ":/opt/yunohost/__APP__/dendrite.yaml" visible = "!registration_disabled" @@ -51,8 +51,8 @@ services = ["__APP__"] [main.registration.disable_federation] ask = "Disable Federation." type = "boolean" - yes = true - no = false + yes = "true" + no = "false" help = "Do not communicate with other homeservers of the Matrix Federation." bind = ":/opt/yunohost/__APP__/dendrite.yaml" visible = "enable_registration_captcha" diff --git a/scripts/install b/scripts/install index 9a23856..d921150 100644 --- a/scripts/install +++ b/scripts/install @@ -15,7 +15,7 @@ source /usr/share/yunohost/helpers #================================================= # Allow or deny registration based on is_public -if [ $registration -eq 1 ] +if [ "$registration" -eq "1" ] then registration_disabled="false" really_enable_open_registration="--really-enable-open-registration" diff --git a/scripts/upgrade b/scripts/upgrade index ab3cec1..a3a486c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -81,7 +81,7 @@ fi # Load up registration variables registration=$(ynh_app_setting_get --app=$app --key=registration) if [ -z $registration ]; then - if [ $registration_disabled -eq 1 ] + if [ "$registration_disabled" -eq "1" ] then really_enable_open_registration="--really-enable-open-registration" else @@ -89,7 +89,7 @@ if [ -z $registration ]; then fi else ynh_app_setting_delete --app=$app --key=registration - if [[ $registration -eq 1 ]] + if [[ "$registration" -eq "1" ]] then registration_disabled="false" really_enable_open_registration="--really-enable-open-registration"