mirror of
https://github.com/YunoHost-Apps/synapse_ynh.git
synced 2024-09-03 20:26:38 +02:00
Rework default value on install
- Turn allow guest don't need to be enable when account creation is allowed - 3pid lookup is completly indpendant of account creation - SSO enabled is not used any more
This commit is contained in:
parent
47ffaea069
commit
995ad42c0b
1 changed files with 2 additions and 7 deletions
|
@ -42,20 +42,16 @@ enable_notifs="true"
|
||||||
notif_for_new_users="true"
|
notif_for_new_users="true"
|
||||||
enable_group_creation="true"
|
enable_group_creation="true"
|
||||||
push_include_content="true"
|
push_include_content="true"
|
||||||
|
enable_3pid_lookup=false
|
||||||
|
turn_allow_guests=false
|
||||||
|
|
||||||
if [ "$is_free_registration" -eq 0 ]
|
if [ "$is_free_registration" -eq 0 ]
|
||||||
then
|
then
|
||||||
enable_registration="false"
|
enable_registration="false"
|
||||||
turn_allow_guests="false"
|
|
||||||
sso_enabled="true"
|
|
||||||
password_enabled="false"
|
password_enabled="false"
|
||||||
enable_3pid_lookup="false"
|
|
||||||
else
|
else
|
||||||
enable_registration="true"
|
enable_registration="true"
|
||||||
turn_allow_guests="true"
|
|
||||||
sso_enabled="false"
|
|
||||||
password_enabled="true"
|
password_enabled="true"
|
||||||
enable_3pid_lookup="true"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
element_ynh_url="https://matrix.to/"
|
element_ynh_url="https://matrix.to/"
|
||||||
|
@ -95,7 +91,6 @@ ynh_app_setting_set --app=$app --key=enable_group_creation --value=$enable_group
|
||||||
ynh_app_setting_set --app=$app --key=push_include_content --value=$push_include_content
|
ynh_app_setting_set --app=$app --key=push_include_content --value=$push_include_content
|
||||||
ynh_app_setting_set --app=$app --key=enable_registration --value=$enable_registration
|
ynh_app_setting_set --app=$app --key=enable_registration --value=$enable_registration
|
||||||
ynh_app_setting_set --app=$app --key=turn_allow_guests --value=$turn_allow_guests
|
ynh_app_setting_set --app=$app --key=turn_allow_guests --value=$turn_allow_guests
|
||||||
ynh_app_setting_set --app=$app --key=sso_enabled --value=$sso_enabled
|
|
||||||
ynh_app_setting_set --app=$app --key=password_enabled --value=$password_enabled
|
ynh_app_setting_set --app=$app --key=password_enabled --value=$password_enabled
|
||||||
ynh_app_setting_set --app=$app --key=enable_3pid_lookup --value=$enable_3pid_lookup
|
ynh_app_setting_set --app=$app --key=enable_3pid_lookup --value=$enable_3pid_lookup
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue