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

init really_enable_open_registration

This commit is contained in:
Gredin67 2023-08-11 11:39:04 +02:00 committed by GitHub
parent 3e0b90bf9e
commit d1d30097b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -81,7 +81,12 @@ fi
# Load up registration variables
registration=$(ynh_app_setting_get --app=$app --key=registration)
if [ -z $registration ]; then
registration=$registration_disabled
if [ $registration_disabled -eq 1 ]
then
really_enable_open_registration="--really-enable-open-registration"
else
really_enable_open_registration=""
fi
else
ynh_app_setting_delete --app=$app --key=registration
if [[ $registration -eq 1 ]]