mirror of
https://github.com/YunoHost-Apps/dendrite_ynh.git
synced 2024-09-03 18:25:58 +02:00
double quotes
This commit is contained in:
parent
d1d30097b2
commit
e2197f675a
3 changed files with 11 additions and 11 deletions
|
@ -26,15 +26,15 @@ services = ["__APP__"]
|
||||||
[main.registration.registration_disabled]
|
[main.registration.registration_disabled]
|
||||||
ask = "Disable Registration from Element ?"
|
ask = "Disable Registration from Element ?"
|
||||||
type = "boolean"
|
type = "boolean"
|
||||||
yes = true
|
yes = "true"
|
||||||
no = false
|
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."
|
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]
|
[main.registration.enable_registration_captcha]
|
||||||
ask = "Require CAPTCHA verification for Registration."
|
ask = "Require CAPTCHA verification for Registration."
|
||||||
type = "boolean"
|
type = "boolean"
|
||||||
yes = true
|
yes = "true"
|
||||||
no = false
|
no = "false"
|
||||||
help = "ReCAPTCHA API should be configured. See instructions https://matrix-org.github.io/dendrite/administration/registration#recaptcha-verification"
|
help = "ReCAPTCHA API should be configured. See instructions https://matrix-org.github.io/dendrite/administration/registration#recaptcha-verification"
|
||||||
bind = ":/opt/yunohost/__APP__/dendrite.yaml"
|
bind = ":/opt/yunohost/__APP__/dendrite.yaml"
|
||||||
visible = "!registration_disabled"
|
visible = "!registration_disabled"
|
||||||
|
@ -42,8 +42,8 @@ services = ["__APP__"]
|
||||||
[main.registration.guests_disabled]
|
[main.registration.guests_disabled]
|
||||||
ask = "Disable guests registration."
|
ask = "Disable guests registration."
|
||||||
type = "boolean"
|
type = "boolean"
|
||||||
yes = true
|
yes = "true"
|
||||||
no = false
|
no = "false"
|
||||||
help = "Guest registration is also disabled implicitly if Registration from Element is disabled."
|
help = "Guest registration is also disabled implicitly if Registration from Element is disabled."
|
||||||
bind = ":/opt/yunohost/__APP__/dendrite.yaml"
|
bind = ":/opt/yunohost/__APP__/dendrite.yaml"
|
||||||
visible = "!registration_disabled"
|
visible = "!registration_disabled"
|
||||||
|
@ -51,8 +51,8 @@ services = ["__APP__"]
|
||||||
[main.registration.disable_federation]
|
[main.registration.disable_federation]
|
||||||
ask = "Disable Federation."
|
ask = "Disable Federation."
|
||||||
type = "boolean"
|
type = "boolean"
|
||||||
yes = true
|
yes = "true"
|
||||||
no = false
|
no = "false"
|
||||||
help = "Do not communicate with other homeservers of the Matrix Federation."
|
help = "Do not communicate with other homeservers of the Matrix Federation."
|
||||||
bind = ":/opt/yunohost/__APP__/dendrite.yaml"
|
bind = ":/opt/yunohost/__APP__/dendrite.yaml"
|
||||||
visible = "enable_registration_captcha"
|
visible = "enable_registration_captcha"
|
||||||
|
|
|
@ -15,7 +15,7 @@ source /usr/share/yunohost/helpers
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Allow or deny registration based on is_public
|
# Allow or deny registration based on is_public
|
||||||
if [ $registration -eq 1 ]
|
if [ "$registration" -eq "1" ]
|
||||||
then
|
then
|
||||||
registration_disabled="false"
|
registration_disabled="false"
|
||||||
really_enable_open_registration="--really-enable-open-registration"
|
really_enable_open_registration="--really-enable-open-registration"
|
||||||
|
|
|
@ -81,7 +81,7 @@ fi
|
||||||
# Load up registration variables
|
# Load up registration variables
|
||||||
registration=$(ynh_app_setting_get --app=$app --key=registration)
|
registration=$(ynh_app_setting_get --app=$app --key=registration)
|
||||||
if [ -z $registration ]; then
|
if [ -z $registration ]; then
|
||||||
if [ $registration_disabled -eq 1 ]
|
if [ "$registration_disabled" -eq "1" ]
|
||||||
then
|
then
|
||||||
really_enable_open_registration="--really-enable-open-registration"
|
really_enable_open_registration="--really-enable-open-registration"
|
||||||
else
|
else
|
||||||
|
@ -89,7 +89,7 @@ if [ -z $registration ]; then
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
ynh_app_setting_delete --app=$app --key=registration
|
ynh_app_setting_delete --app=$app --key=registration
|
||||||
if [[ $registration -eq 1 ]]
|
if [[ "$registration" -eq "1" ]]
|
||||||
then
|
then
|
||||||
registration_disabled="false"
|
registration_disabled="false"
|
||||||
really_enable_open_registration="--really-enable-open-registration"
|
really_enable_open_registration="--really-enable-open-registration"
|
||||||
|
|
Loading…
Add table
Reference in a new issue