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"
|
||||
enable_group_creation="true"
|
||||
push_include_content="true"
|
||||
enable_3pid_lookup=false
|
||||
turn_allow_guests=false
|
||||
|
||||
if [ "$is_free_registration" -eq 0 ]
|
||||
then
|
||||
enable_registration="false"
|
||||
turn_allow_guests="false"
|
||||
sso_enabled="true"
|
||||
password_enabled="false"
|
||||
enable_3pid_lookup="false"
|
||||
else
|
||||
enable_registration="true"
|
||||
turn_allow_guests="true"
|
||||
sso_enabled="false"
|
||||
password_enabled="true"
|
||||
enable_3pid_lookup="true"
|
||||
fi
|
||||
|
||||
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=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=sso_enabled --value=$sso_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
|
||||
|
||||
|
|
Loading…
Reference in a new issue