mirror of
https://github.com/YunoHost-Apps/synapse_ynh.git
synced 2024-09-03 20:26:38 +02:00
Fix settings migration
This commit is contained in:
parent
4d88fe3033
commit
a393698f19
1 changed files with 7 additions and 5 deletions
|
@ -64,10 +64,6 @@ then
|
|||
ynh_die --message="Update from this synapse version is not available. You need to remove this package and reinstall the new package version."
|
||||
fi
|
||||
|
||||
if [ -z $server_name ]; then
|
||||
server_name=$domain
|
||||
ynh_app_setting_set $app server_name $domain
|
||||
fi
|
||||
#=================================================
|
||||
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
|
||||
#=================================================
|
||||
|
@ -93,7 +89,7 @@ ynh_abort_if_errors
|
|||
#=================================================
|
||||
# STANDARD UPGRADE STEPS
|
||||
#=================================================
|
||||
# MIGRATION 5 : GENERATE SYNAPSE SECRET
|
||||
# MIGRATION 5 : Manage old settings
|
||||
#=================================================
|
||||
|
||||
# Migrate from settings 'special_domain' to 'domain' and 'special_path' to 'path'
|
||||
|
@ -107,6 +103,12 @@ if [ -z $domain ]; then
|
|||
ynh_app_setting_set --app=$app --key=no_sso --value true
|
||||
fi
|
||||
|
||||
# Define $server_name if not already defined
|
||||
if [ -z $server_name ]; then
|
||||
server_name=$domain
|
||||
ynh_app_setting_set $app server_name $domain
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# INSTALL DEPENDENCIES
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue