1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dendrite_ynh.git synced 2024-09-03 18:25:58 +02:00

Fix backward compatibility tests²

This commit is contained in:
tituspijean 2023-08-26 14:56:34 +00:00
parent 99e805b816
commit d3c04624d8

View file

@ -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 = *"alse" ]]
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 == *"rue" ]]
then then
registration_disabled="false" registration_disabled="false"
really_enable_open_registration="--really-enable-open-registration" really_enable_open_registration="--really-enable-open-registration"