1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/synapse_ynh.git synced 2024-09-03 20:26:38 +02:00

add retrocompatibility

This commit is contained in:
gnouts 2019-08-01 17:02:48 +02:00
parent 18efb639e4
commit 0f7b1e3dff

View file

@ -32,6 +32,10 @@ upstream_version=$(ynh_app_upstream_version)
domain=$(ynh_app_setting_get $app special_domain) domain=$(ynh_app_setting_get $app special_domain)
server_name=$(ynh_app_setting_get $app server_name) server_name=$(ynh_app_setting_get $app server_name)
if [ -z $server_name ]; then # for retro compatibility
server_name=$domain
ynh_app_setting_set $app server_name $domain
fi
path_url=$(ynh_app_setting_get $app special_path) path_url=$(ynh_app_setting_get $app special_path)
final_path=$(ynh_app_setting_get $app final_path) final_path=$(ynh_app_setting_get $app final_path)
synapse_old_version=$(ynh_app_setting_get $app synapse_version) synapse_old_version=$(ynh_app_setting_get $app synapse_version)