diff --git a/conf/dendrite.yaml b/conf/dendrite.yaml index 6f7da7a..d9ad595 100644 --- a/conf/dendrite.yaml +++ b/conf/dendrite.yaml @@ -173,7 +173,7 @@ client_api: # Whether to require reCAPTCHA for registration. If you have enabled registration # then this is HIGHLY RECOMMENDED to reduce the risk of your homeserver being used # for coordinated spam attacks. - enable_registration_captcha: __ENABLE_REGISTRATION_CAPTCHA + enable_registration_captcha: __ENABLE_REGISTRATION_CAPTCHA__ # Settings for ReCAPTCHA. recaptcha_public_key: "" diff --git a/scripts/config b/scripts/config index a4d62c3..e7991f5 100644 --- a/scripts/config +++ b/scripts/config @@ -14,6 +14,7 @@ ynh_abort_if_errors get_registration_disabled() { registration_disabled=$(ynh_app_setting_get --app $app --key registration_disabled) + domain=$(ynh_app_setting_get --app $app --key domain) echo "${registration_disabled}" } @@ -27,6 +28,7 @@ set__registration_disabled() { ynh_write_var_in_file --file=$install_dir/dendrite.yaml --key=registration_disabled --value="${registration_disabled}" ynh_add_systemd_config + ynh_systemd_action --service_name=$app --action="restart" --line_match="Starting external listener" --log_path="systemd" ynh_app_setting_set --app=$app --key=registration_disabled --value=$registration_disabled } #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index d4f82be..53c1ec2 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -52,7 +52,6 @@ enable_registration_captcha=$(ynh_app_setting_get --app=$app --key=enable_regist #================================================= domain=$(ynh_app_setting_get --app=$app --key=domain) -ynh_app_setting_delete --app=$app --key=domain # Define $server_name if not already defined if [ -z $server_name ]; then