mirror of
https://github.com/YunoHost-Apps/synapse_ynh.git
synced 2024-09-03 20:26:38 +02:00
Apply same default value from install to upgrade
This commit is contained in:
parent
35f809c5c3
commit
c039c3774a
1 changed files with 15 additions and 12 deletions
|
@ -110,17 +110,17 @@ then
|
|||
fi
|
||||
if [ -z "$registrations_require_3pid" ]
|
||||
then
|
||||
registrations_require_3pid="none"
|
||||
registrations_require_3pid=email
|
||||
ynh_app_setting_set --app=$app --key=registrations_require_3pid --value=$registrations_require_3pid
|
||||
fi
|
||||
if [ -z "$allowed_local_3pids_email" ]
|
||||
then
|
||||
allowed_local_3pids_email="'^[^@]+@""matrix""\.org$'"
|
||||
allowed_local_3pids_email=''
|
||||
ynh_app_setting_set --app=$app --key=allowed_local_3pids_email --value=$allowed_local_3pids_email
|
||||
fi
|
||||
if [ -z "$allowed_local_3pids_msisdn" ]
|
||||
then
|
||||
allowed_local_3pids_msisdn="'\+33'"
|
||||
allowed_local_3pids_msisdn=''
|
||||
ynh_app_setting_set --app=$app --key=allowed_local_3pids_msisdn --value=$allowed_local_3pids_msisdn
|
||||
fi
|
||||
if [ -z "$account_threepid_delegates_msisdn" ]
|
||||
|
@ -168,6 +168,17 @@ then
|
|||
enable_group_creation="true"
|
||||
ynh_app_setting_set --app=$app --key=enable_group_creation --value=$enable_group_creation
|
||||
fi
|
||||
if [ -z "$enable_3pid_lookup" ]
|
||||
then
|
||||
enable_3pid_lookup=false
|
||||
ynh_app_setting_set --app=$app --key=enable_3pid_lookup --value=$enable_3pid_lookup
|
||||
fi
|
||||
if [ -z "$turn_allow_guests" ]
|
||||
then
|
||||
turn_allow_guests=false
|
||||
ynh_app_setting_set --app=$app --key=turn_allow_guests --value=$turn_allow_guests
|
||||
fi
|
||||
|
||||
|
||||
if [ -z "$enable_registration" ]
|
||||
then
|
||||
|
@ -178,22 +189,14 @@ then
|
|||
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
|
||||
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
|
||||
fi
|
||||
|
||||
if [ -z "$push_include_content" ]
|
||||
|
|
Loading…
Reference in a new issue